[][src]Struct sixtyfps_corelib::font::Font

pub struct Font {
    pub pixel_size: f32,
    // some fields omitted
}

Fields

pixel_size: f32

Implementations

impl Font[src]

pub fn string_to_glyphs<'a>(
    &'a self,
    text: &'a str
) -> impl Iterator<Item = (usize, char, u32)> + 'a
[src]

pub fn text_width(&self, text: &str) -> f32[src]

pub fn text_offset_for_x_position<'a>(&self, text: &'a str, x: f32) -> usize[src]

pub fn glyph_metrics(&self, glyph: u32) -> GlyphMetrics[src]

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

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

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

pub fn rasterize_glyph(
    &self,
    glyph_id: u32
) -> (f32, f32, ImageBuffer<Rgba<u8>, Vec<u8>>)
[src]

pub fn handle(&self) -> Rc<PlatformFont>[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, 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.