pixi.js
    Preparing search index...

    Variable loadWebFontConst Advanced

    loadWebFont: {
        extension: { priority: LoaderParserPriority; type: LoadParser };
        name: string;
        load<T>(
            url: string,
            options?: ResolvedAsset<LoadFontData>,
        ): Promise<FontFace | FontFace[]>;
        test(url: string): boolean;
        unload(font: FontFace | FontFace[]): void;
    } = ...

    A loader plugin for handling web fonts

    Type declaration

    import { Assets } from 'pixi.js';

    Assets.load({
    alias: 'font',
    src: 'fonts/titan-one.woff',
    data: {
    family: 'Titan One',
    weights: ['normal', 'bold'],
    }
    })