struct GlyphRun<'a> {
font: Font,
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: Font
Font for all glyphs in the run.
font_size: f32
Size of the font in pixels per em.
transform: Affine
Global 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: bool
Controls 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