textalive-app-api - v0.5.2
    Preparing search index...

    Interface IFontLoader

    interface IFontLoader {
        failed: FontInfo[];
        isPrivateFontEnabled: boolean;
        loaded: FontInfo[];
        isLoading(): boolean;
        load(fonts: (string | FontInfo)[]): Promise<FontInfo[]>;
        loadAll(): Promise<FontInfo[]>;
    }
    Index
    failed: FontInfo[]

    読み込みに失敗したフォントの一覧 / List of fonts failed to load

    isPrivateFontEnabled: boolean

    プライベートフォントを対象に含めるかどうか / Whether private fonts are included

    loaded: FontInfo[]

    読み込まれたフォントの一覧 / List of fonts succeeded to load

    • 読み込みプロセスの有無 / Whether fonts are currently loaded or not

      Returns boolean

    • フォントを読み込む

      Load fonts

      Parameters

      • fonts: (string | FontInfo)[]

        フォント名の一覧 / List of font family names

      Returns Promise<FontInfo[]>

      読み込めたフォントの一覧 / List of fonts suceeded to load

    • 利用可能なすべてのフォントを読み込む

      Load all available fonts

      Returns Promise<FontInfo[]>

      読み込めたフォントの一覧 / List of fonts suceeded to load