Struct truetype::windows_metrics::WindowsMetrics2
source · pub struct WindowsMetrics2 {Show 37 fields
pub version: u16,
pub average_char_width: i16,
pub weight_class: u16,
pub width_class: u16,
pub type_flags: TypeFlags,
pub subscript_x_size: i16,
pub subscript_y_size: i16,
pub subscript_x_offset: i16,
pub subscript_y_offset: i16,
pub superscript_x_size: i16,
pub superscript_y_size: i16,
pub superscript_x_offset: i16,
pub superscript_y_offset: i16,
pub strikeout_size: i16,
pub strikeout_position: i16,
pub family_class: i16,
pub panose: [u8; 10],
pub unicode_range1: u32,
pub unicode_range2: u32,
pub unicode_range3: u32,
pub unicode_range4: u32,
pub vendor_id: [i8; 4],
pub selection_flags: SelectionFlags,
pub first_char_index: u16,
pub last_char_index: u16,
pub typographic_ascender: i16,
pub typographic_descender: i16,
pub typographic_line_gap: i16,
pub windows_ascender: u16,
pub windows_descender: u16,
pub code_page_range1: u32,
pub code_page_range2: u32,
pub x_height: i16,
pub cap_height: i16,
pub default_char: u16,
pub break_char: u16,
pub max_context: u16,
}
Expand description
OS/2 and Windows metrics of version 2.
Fields
version: u16
average_char_width: i16
weight_class: u16
width_class: u16
type_flags: TypeFlags
subscript_x_size: i16
subscript_y_size: i16
subscript_x_offset: i16
subscript_y_offset: i16
superscript_x_size: i16
superscript_y_size: i16
superscript_x_offset: i16
superscript_y_offset: i16
strikeout_size: i16
strikeout_position: i16
family_class: i16
panose: [u8; 10]
unicode_range1: u32
unicode_range2: u32
unicode_range3: u32
unicode_range4: u32
vendor_id: [i8; 4]
selection_flags: SelectionFlags
first_char_index: u16
last_char_index: u16
typographic_ascender: i16
typographic_descender: i16
typographic_line_gap: i16
windows_ascender: u16
windows_descender: u16
code_page_range1: u32
code_page_range2: u32
x_height: i16
cap_height: i16
default_char: u16
break_char: u16
max_context: u16
Trait Implementations
sourceimpl Clone for WindowsMetrics2
impl Clone for WindowsMetrics2
sourcefn clone(&self) -> WindowsMetrics2
fn clone(&self) -> WindowsMetrics2
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for WindowsMetrics2
impl Debug for WindowsMetrics2
sourceimpl Default for WindowsMetrics2
impl Default for WindowsMetrics2
sourcefn default() -> WindowsMetrics2
fn default() -> WindowsMetrics2
Returns the “default value” for a type. Read more
sourceimpl Value for WindowsMetrics2
impl Value for WindowsMetrics2
impl Copy for WindowsMetrics2
Auto Trait Implementations
impl RefUnwindSafe for WindowsMetrics2
impl Send for WindowsMetrics2
impl Sync for WindowsMetrics2
impl Unpin for WindowsMetrics2
impl UnwindSafe for WindowsMetrics2
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more