LogoPixi’VN
pixi-jsFunctions

Function: loadFontCSS()

> loadFontCSS(style, url): Promise<string>

Defined in: node_modules/pixi.js/lib/scene/text-html/utils/loadFontCSS.d.ts:34

Internal

This will take a font url and a style and return a css string that can be injected into a style tag This will contain inlined base64 font and the font family information

Parameters

style

FontCSSStyleOptions

the style to generate the css for

url

string

The url to load the font from

Returns

Promise<string>

  • The css string