Web API CSS Font Loading Properties

  • Document.fonts: It returns the FontFaceSet interface of the document.
  • WorkerGlobalScope.fonts: It returns the FontFaceSet interface of the worker.

Web API CSS Font Loading

Web API CSS Font Loading is used to add CSS styles on web pages. It handles the dynamic change which occurs on the web page. We can create a @font-face rule and can add any kind of CSS that we want to load on a page. It also helps in not delaying the styling on the web page. It has many features like FontFace.status which can set the status for loading of FontFace.

Similar Reads

Web API CSS Font Loading Interfaces

FontFace: It represents the font face. FontFaceSet: It checks for the download statuses of loading font faces. FontFaceSetLoadEvent: Invoked whenever a FontFaceSet loads....

Web API CSS Font Loading Properties

Document.fonts: It returns the FontFaceSet interface of the document. WorkerGlobalScope.fonts: It returns the FontFaceSet interface of the worker....

Web API CSS Font Loading Events

fontFaceSet.loading: It fires when the document starts loading the fonts. It is the same as the js property addEventListener. FontFaceSet.loadingdone: It fires when the document has loaded all the fonts. fontFaceSet.loadingerror: It fires when the loading of font has finished and some of them are not able to load properly....

Browser compatibility:

...

Contact Us