Struct imgui::FontConfig[][src]

pub struct FontConfig {
Show 13 fields pub size_pixels: f32, pub oversample_h: i32, pub oversample_v: i32, pub pixel_snap_h: bool, pub glyph_extra_spacing: [f32; 2], pub glyph_offset: [f32; 2], pub glyph_ranges: FontGlyphRanges, pub glyph_min_advance_x: f32, pub glyph_max_advance_x: f32, pub font_builder_flags: u32, pub rasterizer_multiply: f32, pub ellipsis_char: Option<char>, pub name: Option<String>,
}
Expand description

Configuration settings for a font

Fields

size_pixels: f32

Size in pixels for the rasterizer

oversample_h: i32

Horizontal oversampling

oversample_v: i32

Vertical oversampling

pixel_snap_h: bool

Align every glyph to pixel boundary

glyph_extra_spacing: [f32; 2]

Extra spacing (in pixels) between glyphs

glyph_offset: [f32; 2]

Offset for all glyphs in this font

glyph_ranges: FontGlyphRanges

Unicode ranges to use from this font

glyph_min_advance_x: f32

Minimum advance_x for glyphs

glyph_max_advance_x: f32

Maximum advance_x for glyphs

font_builder_flags: u32

Settings for a custom font rasterizer if used

rasterizer_multiply: f32

Brighten (>1.0) or darken (<1.0) font output

ellipsis_char: Option<char>

Explicitly specify the ellipsis character.

With multiple font sources the first specified ellipsis is used.

name: Option<String>

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.