Struct ab_glyph::PxScaleFont [−][src]
A Font
and an associated pixel scale.
Fields
font: F
scale: PxScale
Implementations
impl<F> PxScaleFont<F>
[src]
pub fn with_scale<S: Into<PxScale>>(mut self: Self, scale: S) -> Self
[src]
Trait Implementations
impl<F: Clone> Clone for PxScaleFont<F>
[src]
fn clone(&self) -> PxScaleFont<F>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<F: Copy> Copy for PxScaleFont<F>
[src]
impl<F: Debug> Debug for PxScaleFont<F>
[src]
impl<F: Font> ScaleFont<F> for PxScaleFont<F>
[src]
fn scale(&self) -> PxScale
[src]
fn font(&self) -> &F
[src]
fn codepoint_ids(&self) -> CodepointIdIter<'_>ⓘNotable traits for CodepointIdIter<'a>
impl<'a> Iterator for CodepointIdIter<'a> type Item = (GlyphId, char);
[src]
Notable traits for CodepointIdIter<'a>
impl<'a> Iterator for CodepointIdIter<'a> type Item = (GlyphId, char);
fn h_scale_factor(&self) -> f32
[src]
fn v_scale_factor(&self) -> f32
[src]
fn scale_factor(&self) -> PxScaleFactor
[src]
fn ascent(&self) -> f32
[src]
fn descent(&self) -> f32
[src]
fn height(&self) -> f32
[src]
fn line_gap(&self) -> f32
[src]
fn glyph_id(&self, c: char) -> GlyphId
[src]
fn scaled_glyph(&self, c: char) -> Glyph
[src]
fn h_advance(&self, id: GlyphId) -> f32
[src]
fn h_side_bearing(&self, id: GlyphId) -> f32
[src]
fn v_advance(&self, id: GlyphId) -> f32
[src]
fn v_side_bearing(&self, id: GlyphId) -> f32
[src]
fn kern(&self, first: GlyphId, second: GlyphId) -> f32
[src]
fn glyph_bounds(&self, glyph: &Glyph) -> Rect
[src]
fn glyph_count(&self) -> usize
[src]
fn outline_glyph(&self, glyph: Glyph) -> Option<OutlinedGlyph>
[src]
Auto Trait Implementations
impl<F> RefUnwindSafe for PxScaleFont<F> where
F: RefUnwindSafe,
[src]
F: RefUnwindSafe,
impl<F> Send for PxScaleFont<F> where
F: Send,
[src]
F: Send,
impl<F> Sync for PxScaleFont<F> where
F: Sync,
[src]
F: Sync,
impl<F> Unpin for PxScaleFont<F> where
F: Unpin,
[src]
F: Unpin,
impl<F> UnwindSafe for PxScaleFont<F> where
F: UnwindSafe,
[src]
F: UnwindSafe,
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
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>,