#[repr(C)]pub struct OH_Drawing_Font_Metrics {Show 16 fields
pub flags: u32,
pub top: f32,
pub ascent: f32,
pub descent: f32,
pub bottom: f32,
pub leading: f32,
pub avgCharWidth: f32,
pub maxCharWidth: f32,
pub xMin: f32,
pub xMax: f32,
pub xHeight: f32,
pub capHeight: f32,
pub underlineThickness: f32,
pub underlinePosition: f32,
pub strikeoutThickness: f32,
pub strikeoutPosition: f32,
}Expand description
@brief Defines a run, supplies storage for the metrics of an OH_Drawing_Font.
@since 12 @version 1.0
Fields§
§flags: u32Indicating which metrics are valid
top: f32storage for top in font metrics
ascent: f32storage for ascent in font metrics
descent: f32storage for descent in font metrics
bottom: f32storage for bottom in font metrics
leading: f32storage for leading in font metrics
avgCharWidth: f32Average character width, zero if unknown
maxCharWidth: f32Maximum character width, zero if unknown
xMin: f32Greatest extent to left of origin of any glyph bounding box, typically negative; deprecated with variable fonts
xMax: f32Greatest extent to right of origin of any glyph bounding box, typically positive; deprecated with variable fonts
xHeight: f32Height of lower-case letter, zero if unknown, typically negative
capHeight: f32Height of an upper-case letter, zero if unknown, typically negative
underlineThickness: f32@brief Underline thickness
underlinePosition: f32Distance from baseline to top of stroke, typically positive
strikeoutThickness: f32Strikeout thickness
strikeoutPosition: f32Distance from baseline to bottom of stroke, typically negative
Trait Implementations§
Source§impl Clone for OH_Drawing_Font_Metrics
impl Clone for OH_Drawing_Font_Metrics
Source§fn clone(&self) -> OH_Drawing_Font_Metrics
fn clone(&self) -> OH_Drawing_Font_Metrics
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more