pub(crate) struct HarfBuzzScaler<'a> {
outlines: &'a Outlines<'a>,
memory: HarfBuzzOutlineMemory<'a>,
coords: &'a [F2Dot14],
point_count: usize,
contour_count: usize,
component_delta_count: usize,
ppem: f32,
scale: F26Dot6,
is_scaled: bool,
phantom: [Point<f32>; 4],
}
Expand description
f32 all the things. Hold your rounding. No hinting.
Fields§
§outlines: &'a Outlines<'a>
§memory: HarfBuzzOutlineMemory<'a>
§coords: &'a [F2Dot14]
§point_count: usize
§contour_count: usize
§component_delta_count: usize
§ppem: f32
§scale: F26Dot6
§is_scaled: bool
§phantom: [Point<f32>; 4]
Phantom points. These are 4 extra points appended to the end of an outline that allow the bytecode interpreter to produce hinted metrics.
See https://learn.microsoft.com/en-us/typography/opentype/spec/tt_instructing_glyphs#phantom-points
Implementations§
Source§impl<'a> HarfBuzzScaler<'a>
impl<'a> HarfBuzzScaler<'a>
Trait Implementations§
Source§impl Scaler for HarfBuzzScaler<'_>
impl Scaler for HarfBuzzScaler<'_>
fn setup_phantom_points( &mut self, bounds: [i16; 4], lsb: i32, advance: i32, tsb: i32, vadvance: i32, )
fn outlines(&self) -> &Outlines<'_>
fn load_empty(&mut self, glyph_id: GlyphId) -> Result<(), DrawError>
fn load_simple( &mut self, glyph: &SimpleGlyph<'_>, glyph_id: GlyphId, ) -> Result<(), DrawError>
fn load_composite( &mut self, glyph: &CompositeGlyph<'_>, glyph_id: GlyphId, recurse_depth: usize, ) -> Result<(), DrawError>
fn load( &mut self, glyph: &Option<Glyph<'_>>, glyph_id: GlyphId, recurse_depth: usize, ) -> Result<(), DrawError>
Auto Trait Implementations§
impl<'a> Freeze for HarfBuzzScaler<'a>
impl<'a> RefUnwindSafe for HarfBuzzScaler<'a>
impl<'a> Send for HarfBuzzScaler<'a>
impl<'a> Sync for HarfBuzzScaler<'a>
impl<'a> Unpin for HarfBuzzScaler<'a>
impl<'a> !UnwindSafe for HarfBuzzScaler<'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