[−][src]Struct kas_text::fonts::FontData
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,