ellescuba27
Member
- Messages
- 273
- Reaction score
- 3
- Points
- 18
I'm sorry if this is in the wrong forums section - it's been a while since I went here. Forums look much different now!
Anyhow, I was wondering if there was any way, through Javascript, to detect the files used in a CSS font-face. For example say I have this in an external file:
@font-face {
font-family: 'fp';
font-weight: normal;
font-style: normal;
src: url('fp.woff') format('woff');
}
How could I use Javascript to detect the font's name is fp.woff ? Any font face on the page? Is this even possible? Without a library/JQuery, preferably?
Anyhow, I was wondering if there was any way, through Javascript, to detect the files used in a CSS font-face. For example say I have this in an external file:
@font-face {
font-family: 'fp';
font-weight: normal;
font-style: normal;
src: url('fp.woff') format('woff');
}
How could I use Javascript to detect the font's name is fp.woff ? Any font face on the page? Is this even possible? Without a library/JQuery, preferably?