[−][src]Struct elefont::rusttype_provider::SizedFont
Methods
impl<'a> SizedFont<'a>
[src]
pub fn new(font: Font<'a>, size: f32) -> Self
[src]
pub fn with_size(&self, size: f32) -> Self
[src]
pub fn font(&self) -> &Font<'a>
[src]
pub fn size(&self) -> f32
[src]
Trait Implementations
impl<'a> Clone for SizedFont<'a>
[src]
impl<'_> FontProvider for SizedFont<'_>
[src]
fn line_height(&self) -> f32
[src]
fn pixel_type(&self) -> PixelType
[src]
fn single_glyph(&self, c: char) -> Glyph
[src]
fn glyphs(&self, string: &str, glyphs: &mut Vec<Glyph>)
[src]
fn metrics(&self, glyph: Glyph) -> Metrics
[src]
fn rasterize(&self, glyph: Glyph) -> Result<Vec<u8>, CacheError>
[src]
fn kerning(&self, a: Glyph, b: Glyph) -> f32
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for SizedFont<'a>
impl<'a> Send for SizedFont<'a>
impl<'a> Sync for SizedFont<'a>
impl<'a> Unpin for SizedFont<'a>
impl<'a> UnwindSafe for SizedFont<'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,
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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.
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>,