API reference
Preparing search index…

ImGui.ImFontConfigFields

Font-source and rasterizer settings consumed by atlas construction.

interface ImFontConfigFields {
    EllipsisChar: number;
    FontBuilderFlags: number;
    FontDataOwnedByAtlas: boolean;
    FontDataSize: number;
    FontNo: number;
    GlyphExtraAdvanceX: number;
    GlyphMaxAdvanceX: number;
    GlyphMinAdvanceX: number;
    GlyphOffsetX: number;
    GlyphOffsetY: number;
    MergeMode: boolean;
    OversampleH: number;
    OversampleV: number;
    PixelSnapH: boolean;
    RasterizerDensity: number;
    RasterizerMultiply: number;
    SizePixels: number;
}
Source & inheritance
Member directory17

Properties

Properties

EllipsisChar: number

Ellipsis Unicode value in this build's 16-bit ImWchar representation.

Source & inheritance
FontBuilderFlags: number

Builder-specific unsigned flag mask; zero uses that builder's defaults.

Source & inheritance
FontDataOwnedByAtlas: boolean

Whether the atlas frees font bytes; do not change for borrowed JS buffers.

Source & inheritance
FontDataSize: number

TTF/OTF source length in bytes; changing this does not resize the source.

Source & inheritance
FontNo: number

Zero-based face index within a TTF/OTF collection.

Source & inheritance
GlyphExtraAdvanceX: number

Extra horizontal spacing in pixels added between glyphs.

Source & inheritance
GlyphMaxAdvanceX: number

Maximum horizontal advance in pixels; 3.4028234663852886e38 disables the bound.

Source & inheritance
GlyphMinAdvanceX: number

Minimum horizontal advance in pixels; set with the maximum for monospace.

Source & inheritance
GlyphOffsetX: number

Horizontal offset in pixels applied to every glyph from this source.

Source & inheritance
GlyphOffsetY: number

Vertical offset in pixels; useful when merging fonts with different heights.

Source & inheritance
MergeMode: boolean

Merge glyphs into the preceding font instead of creating a separate font.

Source & inheritance
OversampleH: number

Horizontal rasterization oversampling; zero chooses one or two automatically.

Source & inheritance
OversampleV: number

Vertical rasterization oversampling; zero automatically selects one.

Source & inheritance
PixelSnapH: boolean

Round each glyph's horizontal advance to whole pixels.

Source & inheritance
RasterizerDensity: number

Rasterization density multiplier; leaves logical glyph metrics unchanged.

Source & inheritance
RasterizerMultiply: number

Rasterized coverage multiplier; above one brightens, below one darkens.

Source & inheritance
SizePixels: number

Requested rasterized font size in pixels, approximately its height.

Source & inheritance

Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0