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

    Interface UIFontConfig

    Extended font configuration that can be inherited from parent containers. Like CSS, these settings cascade down the component tree.

    interface UIFontConfig {
        fontFamily?: string;
        fontSize?: number;
        fontType?: FontType;
        fontWeight?: number | "bold" | "normal";
        textColor?: number;
    }

    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.

    textColor?: number

    Default text color (hex number). Inherited by child components.