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,
pub text: Option<Arc<str>>,
}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.
text: Option<Arc<str>>The characters these glyphs set, when the caller supplies them: a renderer that presents text as text (a page’s DOM) reads them instead of the outlines. Never read by the GPU pipeline.