GlyphMetrics
struct · ferroui-base · v0.5.0
struct GlyphMetrics
Represents the metrics for a single glyph in design units.
Members
x_bearingy_bearingwidthheightadvance_widthadvance_heightx_offsety_offsetvertical_origin_xvertical_origin_y
x_bearing
x_bearing: i32
Distance from the x-origin to the left extremum of the glyph.
y_bearing
y_bearing: i32
Distance from the top extremum of the glyph to the y-origin.
width
width: u16
Distance from the left extremum of the glyph to the right extremum.
height
height: u16
Distance from the top extremum of the glyph to the bottom extremum.
advance_width
advance_width: u16
The horizontal advance of the glyph.
advance_height
advance_height: u16
The vertical advance of the glyph.
x_offset
x_offset: u16
The horizontal offset of the glyph.
y_offset
y_offset: u16
The vertical offset of the glyph.
vertical_origin_x
vertical_origin_x: u16
The x coordinate of the vertical origin.
vertical_origin_y
vertical_origin_y: u16
The y coordinate of the vertical origin.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafePropertyValueAnyValueClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherCloneCopyDebugDefaultStructuralPartialEqPartialEq
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.