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">

19 lines (18 loc) 915 B
import type { FontCSSStyleOptions } from './loadFontCSS'; /** @internal */ export declare const FontStylePromiseCache: Map<string, Promise<string>>; /** * takes the font families and returns a css string that can be injected into a style tag * It will contain the font families and the font urls encoded as base64 * @param fontFamilies - The font families to load * @param style - The FontCSSStyleOptions to load the font with (used for the first font family) * @param defaultOptions - The default options to load the font with (used for the rest of the font families) * @param defaultOptions.fontWeight - The default font weight * @param defaultOptions.fontStyle - The default font style * @returns - The css string * @internal */ export declare function getFontCss(fontFamilies: string[], style: FontCSSStyleOptions, defaultOptions: { fontWeight: string; fontStyle: string; }): Promise<string>;