[][src]Struct imgui::ImFontConfig

pub struct ImFontConfig { /* fields omitted */ }

A builder for the configuration for a font.

Methods

impl ImFontConfig[src]

pub fn new() -> ImFontConfig[src]

pub fn size_pixels(self, size_pixels: f32) -> ImFontConfig[src]

pub fn oversample_h(self, oversample_h: u32) -> ImFontConfig[src]

pub fn oversample_v(self, oversample_v: u32) -> ImFontConfig[src]

pub fn pixel_snap_h(self, pixel_snap_h: bool) -> ImFontConfig[src]

pub fn glyph_extra_spacing<I: Into<ImVec2>>(
    self,
    extra_spacing: I
) -> ImFontConfig
[src]

pub fn glyph_offset<I: Into<ImVec2>>(self, glyph_offset: I) -> ImFontConfig[src]

pub fn merge_mode(self, merge_mode: bool) -> ImFontConfig[src]

pub fn rasterizer_multiply(self, rasterizer_multiply: f32) -> ImFontConfig[src]

pub fn add_font<'a>(
    self,
    atlas: &'a mut ImFontAtlas<'a>,
    data: &[u8],
    range: &FontGlyphRange
) -> ImFont<'a>
[src]

Adds a custom font to the font set with the given configuration. A font size must be set in the configuration.

Panics

If no font size is set for the configuration.

pub fn add_default_font<'a>(self, atlas: &'a mut ImFontAtlas<'a>) -> ImFont<'a>[src]

Adds the default font to a given atlas using this configuration.

Trait Implementations

impl Copy for ImFontConfig[src]

impl PartialEq<ImFontConfig> for ImFontConfig[src]

impl Clone for ImFontConfig[src]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for ImFontConfig[src]

impl Debug for ImFontConfig[src]

Auto Trait Implementations

Blanket Implementations

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

type Owned = T

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.