skia
    Preparing search index...

    Interface TypefaceFontProvider

    See SkFontMgr.h for more details

    interface TypefaceFontProvider {
        _type: "FontMgr";
        countFamilies(): number;
        delete(): void;
        deleteLater(): void;
        getFamilyName(index: number): string;
        isAliasOf(other: any): boolean;
        isDeleted(): boolean;
        matchFamilyStyle(name: string, style: FontStyle): Typeface;
        registerFont(
            bytes: ArrayBuffer | Uint8Array<ArrayBufferLike>,
            family: string,
        ): void;
    }

    Hierarchy (View Summary)

    Index

    Properties

    _type: "FontMgr"

    Methods

    • Registers a given typeface with the given family name (ignoring whatever name the typface has for itself).

      Parameters

      • bytes: ArrayBuffer | Uint8Array<ArrayBufferLike>

        the raw bytes for a typeface.

      • family: string

      Returns void