pub struct StrokeTextOutput {
pub polylines: Vec<StrokeTextPolyline>,
pub bounds_mm: Option<[f64; 4]>,
pub advance_width_mm: f64,
pub alignment_width_mm: f64,
pub effective_stroke_width_mm: f64,
pub missing_glyphs: usize,
pub markup_nodes: usize,
pub point_count: usize,
}Expand description
Realized centerlines and source-font metrics.
Fields§
§polylines: Vec<StrokeTextPolyline>§bounds_mm: Option<[f64; 4]>Centerline bounds [min_x, min_y, max_x, max_y] in millimetres.
Stroke-radius expansion is intentionally left to the consumer.
advance_width_mm: f64Actual cursor advance, including ? fallback for unsupported glyphs.
alignment_width_mm: f64Width used for alignment (the KiCad Monkey/Python reference rule).
Unsupported glyphs contribute no width here even though realization
draws and advances by ?.
effective_stroke_width_mm: f64§missing_glyphs: usize§markup_nodes: usize§point_count: usizeTrait Implementations§
Source§impl Clone for StrokeTextOutput
impl Clone for StrokeTextOutput
Source§fn clone(&self) -> StrokeTextOutput
fn clone(&self) -> StrokeTextOutput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StrokeTextOutput
impl Debug for StrokeTextOutput
Source§impl PartialEq for StrokeTextOutput
impl PartialEq for StrokeTextOutput
impl StructuralPartialEq for StrokeTextOutput
Auto Trait Implementations§
impl Freeze for StrokeTextOutput
impl RefUnwindSafe for StrokeTextOutput
impl Send for StrokeTextOutput
impl Sync for StrokeTextOutput
impl Unpin for StrokeTextOutput
impl UnsafeUnpin for StrokeTextOutput
impl UnwindSafe for StrokeTextOutput
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