Editor API Reference - v1.1.4
    Preparing search index...

    Type Alias FontAssetData

    Represents the data for a Font asset.

    type FontAssetData = {
        chars: {
            [key: string]: {
                height: number;
                id: number;
                letter: string;
                range: number;
                scale: number;
                width: number;
                x: number;
                xadvance: number;
                xoffset: number;
                y: number;
                yoffset: number;
            };
        };
        info: { face: string; height: number; width: number };
        intensity: number;
        kerning: { [key: string]: any };
        version: number;
    }
    Index

    Properties

    chars: {
        [key: string]: {
            height: number;
            id: number;
            letter: string;
            range: number;
            scale: number;
            width: number;
            x: number;
            xadvance: number;
            xoffset: number;
            y: number;
            yoffset: number;
        };
    }

    Information about the characters in the font.

    info: { face: string; height: number; width: number }

    Information about the font.

    Type declaration

    • face: string

      The name of the font.

    • height: number

      The height of the font.

    • width: number

      The width of the font.

    intensity: number

    The intensity of the font.

    kerning: { [key: string]: any }

    Information about the kerning.

    version: number

    The font version.