pixi.js
    Preparing search index...

    Interface BitmapFontDataAdvanced

    The raw data of a bitmap font.

    interface BitmapFontData {
        baseLineOffset: number;
        chars: Record<string, RawCharData>;
        distanceField?: { range: number; type: "none" | "sdf" | "msdf" };
        fontFamily: string;
        fontSize: number;
        lineHeight: number;
        pages: { file: string; id: number }[];
    }
    Index

    Properties

    baseLineOffset: number

    The offset of the font face from the baseline.

    chars: Record<string, RawCharData>

    The map of characters by character code.

    distanceField?: { range: number; type: "none" | "sdf" | "msdf" }

    The range and type of the distance field for this font.

    Type declaration

    • range: number

      Range of the distance field in pixels

    • type: "none" | "sdf" | "msdf"

      Type of distance field

    fontFamily: string

    The name of the font face.

    fontSize: number

    The size of the font face in pixels.

    lineHeight: number

    The line-height of the font face in pixels.

    pages: { file: string; id: number }[]

    The map of base page textures (i.e., sheets of glyphs).

    Type declaration

    • file: string

      File name

    • id: number

      Unique id for bitmap texture