UNPKG

pixi.js

Version:

<p align="center"> <a href="https://pixijs.com" target="_blank" rel="noopener noreferrer"> <img height="150" src="https://files.pixijs.download/branding/pixijs-logo-transparent-dark.svg?v=1" alt="PixiJS logo"> </a> </p> <br/> <p align="center">

11 lines (10 loc) 536 B
import type { HTMLTextStyle } from '../HTMLTextStyle'; /** * 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. * @param text - The text to extract font families from * @param style - The style to extract font families from * @returns {string[]} - The font families as an array of strings * @internal */ export declare function extractFontFamilies(text: string, style: HTMLTextStyle): string[];