pub struct ShapedRun {Show 19 fields
pub font_face_id: FontFaceId,
pub size_px: f32,
pub weight: u16,
pub glyphs: Vec<ShapedGlyph>,
pub advance_width: f32,
pub text_range: Range<usize>,
pub direction: TextDirection,
pub underline_style: UnderlineStyle,
pub overline: bool,
pub strikeout: bool,
pub is_link: bool,
pub foreground_color: Option<[f32; 4]>,
pub underline_color: Option<[f32; 4]>,
pub background_color: Option<[f32; 4]>,
pub anchor_href: Option<String>,
pub tooltip: Option<String>,
pub vertical_alignment: VerticalAlignment,
pub image_name: Option<String>,
pub image_height: f32,
}Fields§
§font_face_id: FontFaceId§size_px: f32§weight: u16Resolved font weight (CSS 100–900). Propagated to the glyph
rasterizer so variable-font wght axis is set correctly and
the glyph cache key distinguishes different weights.
glyphs: Vec<ShapedGlyph>§advance_width: f32§text_range: Range<usize>§direction: TextDirectionResolved visual direction of this run. Glyphs are stored in visual
(left-to-right) order, so for an RTL run their cluster byte
offsets descend across the array. Hit-testing and caret placement
need this to map between visual x and logical offset correctly.
underline_style: UnderlineStyleDecoration flags from the source fragment’s TextFormat.
overline: bool§strikeout: bool§is_link: bool§foreground_color: Option<[f32; 4]>Text foreground color (RGBA). None means default (black).
underline_color: Option<[f32; 4]>Underline color (RGBA). None means use foreground_color.
background_color: Option<[f32; 4]>Text-level background highlight color (RGBA). None means transparent.
anchor_href: Option<String>Hyperlink destination URL.
tooltip: Option<String>Tooltip text.
vertical_alignment: VerticalAlignmentVertical alignment (normal, superscript, subscript).
image_name: Option<String>If Some, this run represents an inline image placeholder.
image_height: f32Image height in pixels (used for line height expansion).