Struct flo_canvas::FontMetrics [−][src]
pub struct FontMetrics {
pub em_size: f32,
pub ascender: f32,
pub descender: f32,
pub height: f32,
pub line_gap: f32,
pub capital_height: Option<f32>,
pub underline_position: Option<FontLinePosition>,
pub strikeout_position: Option<FontLinePosition>,
}Expand description
Metrics for a font
Fields
em_size: f32Size of an em relative to these metrics
ascender: f32The ascender size for the font
descender: f32The descender size for the font
height: f32The height for the font
line_gap: f32The line gap for the font
capital_height: Option<f32>The capital height for the font, if specified
underline_position: Option<FontLinePosition>Offset from the baseline and suggested thickness for an underline (can be None if the font does not specify)
strikeout_position: Option<FontLinePosition>Offset from the baseline and suggested thickness for a strikeout effect
Implementations
Returns the metrics adjusted to a new em size
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for FontMetrics
impl Send for FontMetrics
impl Sync for FontMetrics
impl Unpin for FontMetrics
impl UnwindSafe for FontMetrics
Blanket Implementations
Mutably borrows from an owned value. Read more