[][src]Struct imgui::FontConfig

pub struct FontConfig {
    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 rasterizer_flags: u32,
    pub rasterizer_multiply: f32,
    pub ellipsis_char: Option<char>,
    pub name: Option<String>,
}

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

rasterizer_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

impl Clone for FontConfig[src]

impl Debug for FontConfig[src]

impl Default for FontConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.