Struct rg3d_ui::ttf::Font[][src]

pub struct Font {
    pub texture: Option<SharedTexture>,
    // some fields omitted
}

Fields

texture: Option<SharedTexture>

Implementations

impl Font[src]

pub fn default_char_set() -> &'static [Range<u32>][src]

pub fn from_memory(
    data: Vec<u8>,
    height: f32,
    char_set: &[Range<u32>]
) -> Result<Self, &'static str>
[src]

pub fn from_file<P: AsRef<Path>>(
    path: P,
    height: f32,
    char_set: &[Range<u32>]
) -> Result<Self, &'static str>
[src]

pub fn glyph(&self, unicode: u32) -> Option<&FontGlyph>[src]

pub fn height(&self) -> f32[src]

pub fn ascender(&self) -> f32[src]

pub fn descender(&self) -> f32[src]

pub fn atlas_pixels(&self) -> &[u8][src]

pub fn atlas_size(&self) -> usize[src]

pub fn glyph_advance(&self, c: u32) -> f32[src]

Trait Implementations

impl Debug for Font[src]

Auto Trait Implementations

impl !RefUnwindSafe for Font

impl Send for Font

impl Sync for Font

impl Unpin for Font

impl !UnwindSafe for Font

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> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,