struct ColrMetrics {
transform: Affine,
scaled_bbox: Rect,
scale_factor_x: f64,
scale_factor_y: f64,
font_size_scale: f64,
has_non_default_blend: bool,
}Expand description
Helper struct containing computed COLR glyph metrics.
Fields§
§transform: AffineBase transform with glyph position applied.
scaled_bbox: RectScaled bounding box in device coordinates.
scale_factor_x: f64Scale factor for x-axis.
scale_factor_y: f64Scale factor for y-axis.
font_size_scale: f64Font size scale (font_size / upem).
has_non_default_blend: boolAuto Trait Implementations§
impl Freeze for ColrMetrics
impl RefUnwindSafe for ColrMetrics
impl Send for ColrMetrics
impl Sync for ColrMetrics
impl Unpin for ColrMetrics
impl UnsafeUnpin for ColrMetrics
impl UnwindSafe for ColrMetrics
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