[][src]Struct kas_text::fonts::FontData

pub struct FontData<'a> { /* fields omitted */ }

Provides access to font data

Each valid FontId is an index to a loaded font face. Since fonts are never unloaded or replaced, FontId::get is a valid index into these arrays for any valid FontId.

Implementations

impl<'a> FontData<'a>[src]

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

Number of available fonts

pub fn get_path(&self, index: usize) -> (&Path, u32)[src]

Access font path and face index

Note: use FontData::get_data to access the font file data, already loaded into memory.

pub fn get_data(&self, index: usize) -> (&'static [u8], u32)[src]

Access font data and face index

Auto Trait Implementations

impl<'a> RefUnwindSafe for FontData<'a>

impl<'a> !Send for FontData<'a>

impl<'a> Sync for FontData<'a>

impl<'a> Unpin for FontData<'a>

impl<'a> UnwindSafe for FontData<'a>

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, 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.