UNPKG

@lightningjs/renderer

Version:
12 lines (11 loc) 485 B
import type { Stage } from '../Stage.js'; import type { CoreFont } from './CoreFont.js'; import type { FontLoadOptions, TextRenderer, TextRenderers } from './TextRenderer.js'; export declare class CoreFontManager { private fonts; private renderers; constructor(stage: Stage, textRenderers: TextRenderer[]); loadFont(type: TextRenderers, options: FontLoadOptions): void; unloadFont(fontFamily: string): void; getFont(fontFamily: string): CoreFont | undefined; }