pub struct Os2 {Show 38 fields
pub x_avg_char_width: i16,
pub us_weight_class: u16,
pub us_width_class: u16,
pub fs_type: u16,
pub y_subscript_x_size: i16,
pub y_subscript_y_size: i16,
pub y_subscript_x_offset: i16,
pub y_subscript_y_offset: i16,
pub y_superscript_x_size: i16,
pub y_superscript_y_size: i16,
pub y_superscript_x_offset: i16,
pub y_superscript_y_offset: i16,
pub y_strikeout_size: i16,
pub y_strikeout_position: i16,
pub s_family_class: i16,
pub panose_10: [u8; 10],
pub ul_unicode_range_1: u32,
pub ul_unicode_range_2: u32,
pub ul_unicode_range_3: u32,
pub ul_unicode_range_4: u32,
pub ach_vend_id: Tag,
pub fs_selection: SelectionFlags,
pub us_first_char_index: u16,
pub us_last_char_index: u16,
pub s_typo_ascender: i16,
pub s_typo_descender: i16,
pub s_typo_line_gap: i16,
pub us_win_ascent: u16,
pub us_win_descent: u16,
pub ul_code_page_range_1: Option<u32>,
pub ul_code_page_range_2: Option<u32>,
pub sx_height: Option<i16>,
pub s_cap_height: Option<i16>,
pub us_default_char: Option<u16>,
pub us_break_char: Option<u16>,
pub us_max_context: Option<u16>,
pub us_lower_optical_point_size: Option<u16>,
pub us_upper_optical_point_size: Option<u16>,
}
Expand description
Fields§
§x_avg_char_width: i16
The Average Character Width parameter specifies the arithmetic average of the escapement (width) of all non-zero width glyphs in the font.
us_weight_class: u16
Indicates the visual weight (degree of blackness or thickness of strokes) of the characters in the font. Values from 1 to 1000 are valid.
us_width_class: u16
Indicates a relative change from the normal aspect ratio (width to height ratio) as specified by a font designer for the glyphs in a font.
fs_type: u16
Indicates font embedding licensing rights for the font.
y_subscript_x_size: i16
The recommended horizontal size in font design units for subscripts for this font.
y_subscript_y_size: i16
The recommended vertical size in font design units for subscripts for this font.
y_subscript_x_offset: i16
The recommended horizontal offset in font design units for subscripts for this font.
y_subscript_y_offset: i16
The recommended vertical offset in font design units for subscripts for this font.
y_superscript_x_size: i16
The recommended horizontal size in font design units for superscripts for this font.
y_superscript_y_size: i16
The recommended vertical size in font design units for superscripts for this font.
y_superscript_x_offset: i16
The recommended horizontal offset in font design units for superscripts for this font.
y_superscript_y_offset: i16
The recommended vertical offset in font design units for superscripts for this font.
y_strikeout_size: i16
Thickness of the strikeout stroke in font design units.
y_strikeout_position: i16
The position of the top of the strikeout stroke relative to the baseline in font design units.
s_family_class: i16
Font-family class and subclass. This parameter is a classification of font-family design.
panose_10: [u8; 10]
Additional specifications are required for PANOSE to classify non-Latin character sets.
ul_unicode_range_1: u32
Unicode Character Range (bits 0-31).
ul_unicode_range_2: u32
Unicode Character Range (bits 32-63).
ul_unicode_range_3: u32
Unicode Character Range (bits 64-95).
ul_unicode_range_4: u32
Unicode Character Range (bits 96-127).
ach_vend_id: Tag
The four-character identifier for the vendor of the given type face.
fs_selection: SelectionFlags
Contains information concerning the nature of the font patterns.
us_first_char_index: u16
The minimum Unicode index (character code) in this font.
us_last_char_index: u16
The maximum Unicode index (character code) in this font.
s_typo_ascender: i16
The typographic ascender for this font.
s_typo_descender: i16
The typographic descender for this font.
s_typo_line_gap: i16
The typographic line gap for this font.
us_win_ascent: u16
The “Windows ascender” metric.
This should be used to specify the height above the baseline for a clipping region.
us_win_descent: u16
The “Windows descender” metric.
This should be used to specify the vertical extent below the baseline for a clipping region.
ul_code_page_range_1: Option<u32>
Code page character range bits 0-31.
ul_code_page_range_2: Option<u32>
Code page character range bits 32-63.
sx_height: Option<i16>
This metric specifies the distance between the baseline and the approximate height of non-ascending lowercase letters measured in FUnits.
s_cap_height: Option<i16>
This metric specifies the distance between the baseline and the approximate height of uppercase letters measured in FUnits.
us_default_char: Option<u16>
This is the Unicode codepoint, in UTF-16 encoding, of a character that can be used for a default glyph.
us_break_char: Option<u16>
This is the Unicode codepoint, in UTF-16 encoding, of a character that can be used as a default break character.
us_max_context: Option<u16>
This field is used for fonts with multiple optical styles.
us_lower_optical_point_size: Option<u16>
This field is used for fonts with multiple optical styles.
us_upper_optical_point_size: Option<u16>
This field is used for fonts with multiple optical styles.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Os2
impl<'de> Deserialize<'de> for Os2
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl FontWrite for Os2
impl FontWrite for Os2
Source§fn write_into(&self, writer: &mut TableWriter)
fn write_into(&self, writer: &mut TableWriter)
Source§fn table_type(&self) -> TableType
fn table_type(&self) -> TableType
Source§impl Ord for Os2
impl Ord for Os2
Source§impl PartialOrd for Os2
impl PartialOrd for Os2
Source§impl Validate for Os2
impl Validate for Os2
Source§fn validate_impl(&self, ctx: &mut ValidationCtx)
fn validate_impl(&self, ctx: &mut ValidationCtx)
impl Eq for Os2
impl StructuralPartialEq for Os2
Auto Trait Implementations§
impl Freeze for Os2
impl RefUnwindSafe for Os2
impl Send for Os2
impl Sync for Os2
impl Unpin for Os2
impl UnwindSafe for Os2
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.Source§impl<'a, T> FontReadWithArgs<'a> for Twhere
T: FontRead<'a>,
impl<'a, T> FontReadWithArgs<'a> for Twhere
T: FontRead<'a>,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
T
, using the provided data to resolve any offsets.