[−][src]Struct egui::paint::font::FontImpl
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]
atlas: Arc<Mutex<TextureAtlas>>,
pixels_per_point: f32,
rusttype_font: Arc<Font<'static>>,
scale_in_points: f32
) -> FontImpl
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
impl !RefUnwindSafe for FontImpl
[src]
impl Send for FontImpl
[src]
impl Sync for FontImpl
[src]
impl Unpin for FontImpl
[src]
impl !UnwindSafe for FontImpl
[src]
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>,