[−]Struct glyph_brush::ab_glyph::PxScaleFont
A Font
and an associated pixel scale.
Fields
font: F
scale: PxScale
Implementations
impl<F> PxScaleFont<F>
pub fn with_scale<S>(self, scale: S) -> PxScaleFont<F> where
S: Into<PxScale>,
S: Into<PxScale>,
Trait Implementations
impl<F> Clone for PxScaleFont<F> where
F: Clone,
F: Clone,
pub fn clone(&self) -> PxScaleFont<F>
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<F> Copy for PxScaleFont<F> where
F: Copy,
F: Copy,
impl<F> Debug for PxScaleFont<F> where
F: Debug,
F: Debug,
impl<F> ScaleFont<F> for PxScaleFont<F> where
F: Font,
F: Font,
pub fn scale(&self) -> PxScale
pub fn font(&self) -> &F
pub fn codepoint_ids(&self) -> CodepointIdIter<'_>ⓘNotable traits for CodepointIdIter<'a>
impl<'a> Iterator for CodepointIdIter<'a> type Item = (GlyphId, char);
Notable traits for CodepointIdIter<'a>
impl<'a> Iterator for CodepointIdIter<'a> type Item = (GlyphId, char);
pub fn h_scale_factor(&self) -> f32
pub fn v_scale_factor(&self) -> f32
pub fn scale_factor(&self) -> PxScaleFactor
pub fn ascent(&self) -> f32
pub fn descent(&self) -> f32
pub fn height(&self) -> f32
pub fn line_gap(&self) -> f32
pub fn glyph_id(&self, c: char) -> GlyphId
pub fn scaled_glyph(&self, c: char) -> Glyph
pub fn h_advance(&self, id: GlyphId) -> f32
pub fn h_side_bearing(&self, id: GlyphId) -> f32
pub fn v_advance(&self, id: GlyphId) -> f32
pub fn v_side_bearing(&self, id: GlyphId) -> f32
pub fn kern(&self, first: GlyphId, second: GlyphId) -> f32
pub fn glyph_bounds(&self, glyph: &Glyph) -> Rect
pub fn glyph_count(&self) -> usize
pub fn outline_glyph(&self, glyph: Glyph) -> Option<OutlinedGlyph>
Auto Trait Implementations
impl<F> RefUnwindSafe for PxScaleFont<F> where
F: RefUnwindSafe,
F: RefUnwindSafe,
impl<F> Send for PxScaleFont<F> where
F: Send,
F: Send,
impl<F> Sync for PxScaleFont<F> where
F: Sync,
F: Sync,
impl<F> Unpin for PxScaleFont<F> where
F: Unpin,
F: Unpin,
impl<F> UnwindSafe for PxScaleFont<F> where
F: UnwindSafe,
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> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,