load

inline suspend fun FontFace.load(): FontFace(source)

The load() method of the FontFace interface requests and loads a font whose source was specified as a URL.

MDN Reference


inline suspend fun FontFaceSet.load(font: String, text: String): ReadonlyArray<FontFace>(source)
inline suspend fun FontFaceSet.load(font: String): ReadonlyArray<FontFace>(source)

The load() method of the FontFaceSet forces all the fonts given in parameters to be loaded.

MDN Reference