struct GlyphRun<'a> {
font: FontData,
font_size: f32,
transform: Affine,
glyph_transform: Option<Affine>,
normalized_coords: &'a [NormalizedCoord],
hint: bool,
}Expand description
A sequence of glyphs with shared rendering properties.
Fields§
§font: FontDataFont for all glyphs in the run.
font_size: f32Size of the font in pixels per em.
transform: AffineGlobal transform.
glyph_transform: Option<Affine>Per-glyph transform. Use Affine::skew with horizontal-skew only to simulate italic
text.
normalized_coords: &'a [NormalizedCoord]Normalized variation coordinates for variable fonts.
hint: boolControls whether font hinting is enabled.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for GlyphRun<'a>
impl<'a> !RefUnwindSafe for GlyphRun<'a>
impl<'a> Send for GlyphRun<'a>
impl<'a> Sync for GlyphRun<'a>
impl<'a> Unpin for GlyphRun<'a>
impl<'a> !UnwindSafe for GlyphRun<'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