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

Hi, I am looking for access to @ font-face using Javascript. I guess this is somewhere in the DOM, but where?

I want to do this to detect the font-face function.

Thank!

+3
source share
2 answers

I found a link to this article inside Modernizr .

It does not look like you can request a DOM (if both of these methods do not allow it to be run only for showmanship).

+1
source

Do you mean CSSFontFaceRule?

For detection, you can use this .

0
source

Source: https://habr.com/ru/post/1745191/


All Articles