@moxijs/ui - v0.3.5
    Preparing search index...

    Interface FontProps

    Font configuration props for UI components.

    // Canvas text (default)
    { fontFamily: 'Arial', fontSize: 16 }

    // MSDF text for crisp scaling
    { fontFamily: 'PixelOperator8', fontType: 'msdf', fontSize: 16 }

    // Bitmap font
    { fontFamily: 'MyBitmapFont', fontType: 'bitmap', fontSize: 16 }
    interface FontProps {
        fontFamily?: string;
        fontSize?: number;
        fontType?: FontType;
        fontWeight?: number | "bold" | "normal";
    }

    Hierarchy (View Summary)

    Index

    Properties

    fontFamily?: string

    Font family name. For canvas: Any CSS font family (e.g., 'Arial', 'Helvetica') For MSDF: Must match the loaded MSDF font's family name For bitmap: Must match the loaded bitmap font's family name

    fontSize?: number

    Font size in pixels.

    fontType?: FontType

    Font rendering type.

    'canvas'
    
    fontWeight?: number | "bold" | "normal"

    Font weight. Only applies to canvas fonts.