pub struct TextContourOutput {
pub contours: Vec<TextContour>,
pub contour_group_sizes: Vec<usize>,
pub contour_group_origins: Vec<TextPoint>,
pub advance_x: f64,
pub advance_y: f64,
pub units_per_em: u16,
pub glyphs: usize,
pub missing_glyphs: usize,
pub outline_less_glyphs: usize,
pub outline_commands: usize,
pub bezier_work_items: usize,
pub peak_temporary_bezier_points: usize,
}Expand description
Positioned contours plus the final run advance in caller coordinates.
Fields§
§contours: Vec<TextContour>§contour_group_sizes: Vec<usize>Contiguous per-glyph contour counts in glyph order, summing to
contours.len(). KiCad fractures each drawn glyph’s polygon set
independently, so cache composition must scope reordering per glyph.
contour_group_origins: Vec<TextPoint>Each group’s glyph origin in caller coordinates, parallel to
contour_group_sizes: its pen position plus its shaped offset, where
its outline’s own origin lands.
advance_x: f64§advance_y: f64§units_per_em: u16§glyphs: usize§missing_glyphs: usizeShaped glyphs using glyph id zero. Exact-fidelity consumers can reject the result without invoking the shaping engine a second time.
outline_less_glyphs: usizeShaped non-whitespace glyphs for which the selected face returned no outline. Whitespace legitimately advances without an outline; other outline-less glyphs must not disappear silently in exact consumers.
outline_commands: usize§bezier_work_items: usize§peak_temporary_bezier_points: usizeTrait Implementations§
Source§impl Clone for TextContourOutput
impl Clone for TextContourOutput
Source§fn clone(&self) -> TextContourOutput
fn clone(&self) -> TextContourOutput
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more