pixi-jsFunctions
Function: extractFontFamilies()
> extractFontFamilies(text, style): string[]
Defined in: node_modules/pixi.js/lib/scene/text-html/utils/extractFontFamilies.d.ts:10
Internal
Extracts font families from text. It will extract font families from the style, tagStyles and any font families embedded in the text. It should also strip out duplicates as it goes.
Parameters
text
string
The text to extract font families from
style
The style to extract font families from
Returns
string[]
- The font families as an array of strings