Enum imgui::FontSource[][src]

pub enum FontSource<'a> {
    DefaultFontData {
        config: Option<FontConfig>,
    },
    TtfData {
        data: &'a [u8],
        size_pixels: f32,
        config: Option<FontConfig>,
    },
}

A source for binary font data

Variants

DefaultFontData

Default font included with the library (ProggyClean.ttf)

Fields of DefaultFontData

config: Option<FontConfig>
TtfData

Binary TTF/OTF font data

Fields of TtfData

data: &'a [u8]size_pixels: f32config: Option<FontConfig>

Trait Implementations

impl<'a> Clone for FontSource<'a>[src]

impl<'a> Debug for FontSource<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for FontSource<'a>[src]

impl<'a> !Send for FontSource<'a>[src]

impl<'a> !Sync for FontSource<'a>[src]

impl<'a> Unpin for FontSource<'a>[src]

impl<'a> UnwindSafe for FontSource<'a>[src]

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.