pub struct GlyphRun {
pub font: FontData,
pub transform: Transform,
pub glyph_transform: Option<Transform>,
pub brush_transform: Option<Transform>,
pub font_size: f32,
pub font_embolden: FontEmbolden,
pub hint: bool,
pub normalized_coords: Range<usize>,
pub style: Style,
pub glyphs: Range<usize>,
pub stream_offsets: StreamOffsets,
}Expand description
Properties for a sequence of glyphs in an encoding.
Fields§
§font: FontDataFont for all glyphs in the run.
transform: TransformGlobal run transform.
glyph_transform: Option<Transform>Per-glyph transform.
brush_transform: Option<Transform>Additional transform applied to the brush contents after the global run transform.
This is encoded as the run’s paint transform and affects transformed brushes such as gradients and images; solid colors ignore it.
font_size: f32Size of the font in pixels per em.
font_embolden: FontEmboldenSynthetic embolden settings.
hint: boolTrue if hinting is enabled.
normalized_coords: Range<usize>Range of normalized coordinates in the parent encoding.
style: StyleFill or stroke style.
glyphs: Range<usize>Range of glyphs in the parent encoding.
stream_offsets: StreamOffsetsStream offsets where this glyph run should be inserted.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for GlyphRun
impl !UnwindSafe for GlyphRun
impl Forget for GlyphRun
impl Freeze for GlyphRun
impl Move for GlyphRun
impl Send for GlyphRun
impl Sync for GlyphRun
impl Unpin for GlyphRun
impl UnsafeUnpin for GlyphRun
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