[][src]Struct egui::paint::font::FontImpl

pub struct FontImpl { /* fields omitted */ }

A specific font with a size. The interface uses points as the unit for everything.

Implementations

impl FontImpl[src]

pub fn new(
    atlas: Arc<Mutex<TextureAtlas>>,
    pixels_per_point: f32,
    rusttype_font: Arc<Font<'static>>,
    scale_in_points: f32
) -> FontImpl
[src]

pub fn pair_kerning(&self, last_glyph_id: GlyphId, glyph_id: GlyphId) -> f32[src]

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

Height of one row of text. In points

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

Auto Trait Implementations

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.