pub struct Hhea {
pub ascender: FWord,
pub descender: FWord,
pub line_gap: FWord,
pub advance_width_max: UfWord,
pub min_left_side_bearing: FWord,
pub min_right_side_bearing: FWord,
pub x_max_extent: FWord,
pub caret_slope_rise: i16,
pub caret_slope_run: i16,
pub caret_offset: i16,
pub number_of_h_metrics: u16,
}
Expand description
hhea Horizontal Header Table
Fields§
§ascender: FWord
Typographic ascent.
descender: FWord
Typographic descent.
line_gap: FWord
Typographic line gap. Negative LineGap values are treated as zero in some legacy platform implementations.
advance_width_max: UfWord
Maximum advance width value in ‘hmtx’ table.
min_left_side_bearing: FWord
Minimum left sidebearing value in ‘hmtx’ table for glyphs with contours (empty glyphs should be ignored).
min_right_side_bearing: FWord
Minimum right sidebearing value; calculated as min(aw - (lsb + xMax - xMin)) for glyphs with contours (empty glyphs should be ignored).
x_max_extent: FWord
Max(lsb + (xMax-xMin))
caret_slope_rise: i16
Used to calculate the slope of the cursor (rise/run); 1 for vertical caret, 0 for horizontal.
caret_slope_run: i16
0 for vertical caret, 1 for horizontal.
caret_offset: i16
The amount by which a slanted highlight on a glyph needs to be shifted to produce the best appearance. Set to 0 for non-slanted fonts
number_of_h_metrics: u16
Number of hMetric entries in ‘hmtx’ table
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Hhea
impl<'de> Deserialize<'de> for Hhea
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 Hhea
impl FontWrite for Hhea
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 Hhea
impl Ord for Hhea
Source§impl PartialOrd for Hhea
impl PartialOrd for Hhea
Source§impl Validate for Hhea
impl Validate for Hhea
Source§fn validate_impl(&self, _ctx: &mut ValidationCtx)
fn validate_impl(&self, _ctx: &mut ValidationCtx)
impl Eq for Hhea
impl StructuralPartialEq for Hhea
Auto Trait Implementations§
impl Freeze for Hhea
impl RefUnwindSafe for Hhea
impl Send for Hhea
impl Sync for Hhea
impl Unpin for Hhea
impl UnwindSafe for Hhea
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.