pub struct ScaledFaceRef<'a>(/* private fields */);Expand description
Handle to a loaded font face
TODO: verify whether these values need adjustment for variations.
Implementations§
Source§impl<'a> ScaledFaceRef<'a>
impl<'a> ScaledFaceRef<'a>
Sourcepub fn h_advance(&self, id: GlyphId) -> f32
pub fn h_advance(&self, id: GlyphId) -> f32
Horizontal advancement after this glyph, without shaping or kerning
Sourcepub fn h_side_bearing(&self, id: GlyphId) -> f32
pub fn h_side_bearing(&self, id: GlyphId) -> f32
Horizontal side bearing
If unspecified by the font this resolves to 0.
Sourcepub fn underline_metrics(&self) -> Option<LineMetrics>
pub fn underline_metrics(&self) -> Option<LineMetrics>
Metrics for underline
Sourcepub fn strikethrough_metrics(&self) -> Option<LineMetrics>
pub fn strikethrough_metrics(&self) -> Option<LineMetrics>
Metrics for strike-through
Trait Implementations§
Source§impl<'a> Clone for ScaledFaceRef<'a>
impl<'a> Clone for ScaledFaceRef<'a>
Source§fn clone(&self) -> ScaledFaceRef<'a>
fn clone(&self) -> ScaledFaceRef<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for ScaledFaceRef<'a>
impl<'a> Debug for ScaledFaceRef<'a>
impl<'a> Copy for ScaledFaceRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for ScaledFaceRef<'a>
impl<'a> RefUnwindSafe for ScaledFaceRef<'a>
impl<'a> Send for ScaledFaceRef<'a>
impl<'a> Sync for ScaledFaceRef<'a>
impl<'a> Unpin for ScaledFaceRef<'a>
impl<'a> UnwindSafe for ScaledFaceRef<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<S, T> CastApprox<T> for Swhere
T: ConvApprox<S>,
impl<S, T> CastApprox<T> for Swhere
T: ConvApprox<S>,
Source§fn try_cast_approx(self) -> Result<T, Error>
fn try_cast_approx(self) -> Result<T, Error>
Source§fn cast_approx(self) -> T
fn cast_approx(self) -> T
Source§impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
Source§fn cast_trunc(self) -> T
fn cast_trunc(self) -> T
Cast to integer, truncating Read more
Source§fn cast_nearest(self) -> T
fn cast_nearest(self) -> T
Cast to the nearest integer Read more
Source§fn cast_floor(self) -> T
fn cast_floor(self) -> T
Cast the floor to an integer Read more