简体   繁体   中英

How do you access @font-face in the DOM (via Javascript)?

Hi I'm looking to access @font-face with Javascript. I assume it's somewhere in the DOM but where?

I want to do this for @font-face feature detection.

Thanks!

I found a link to this article inside the Modernizr library.

It doesn't look like you can query the DOM (unless both these methods are giving it the run around just for showmanship).

You mean CSSFontFaceRule ?

For detection you can use this .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM