Struct read_fonts::tables::bitmap::SbitLineMetrics
source · #[repr(C, packed(1))]pub struct SbitLineMetrics {
pub ascender: BigEndian<i8>,
pub descender: BigEndian<i8>,
pub width_max: u8,
pub caret_slope_numerator: BigEndian<i8>,
pub caret_slope_denominator: u8,
pub caret_offset: BigEndian<i8>,
pub min_origin_sb: BigEndian<i8>,
pub min_advance_sb: BigEndian<i8>,
pub max_before_bl: BigEndian<i8>,
pub min_after_bl: BigEndian<i8>,
pub pad1: BigEndian<i8>,
pub pad2: BigEndian<i8>,
}
Expand description
SbitLineMetrics record.
Fields§
§ascender: BigEndian<i8>
§descender: BigEndian<i8>
§width_max: u8
§caret_slope_numerator: BigEndian<i8>
§caret_slope_denominator: u8
§caret_offset: BigEndian<i8>
§min_origin_sb: BigEndian<i8>
§min_advance_sb: BigEndian<i8>
§max_before_bl: BigEndian<i8>
§min_after_bl: BigEndian<i8>
§pad1: BigEndian<i8>
§pad2: BigEndian<i8>
Implementations§
source§impl SbitLineMetrics
impl SbitLineMetrics
pub fn ascender(&self) -> i8
pub fn descender(&self) -> i8
pub fn width_max(&self) -> u8
pub fn caret_slope_numerator(&self) -> i8
pub fn caret_slope_denominator(&self) -> u8
pub fn caret_offset(&self) -> i8
pub fn min_origin_sb(&self) -> i8
pub fn min_advance_sb(&self) -> i8
pub fn max_before_bl(&self) -> i8
pub fn min_after_bl(&self) -> i8
pub fn pad1(&self) -> i8
pub fn pad2(&self) -> i8
Trait Implementations§
source§impl Clone for SbitLineMetrics
impl Clone for SbitLineMetrics
source§fn clone(&self) -> SbitLineMetrics
fn clone(&self) -> SbitLineMetrics
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SbitLineMetrics
impl Debug for SbitLineMetrics
source§impl FixedSize for SbitLineMetrics
impl FixedSize for SbitLineMetrics
source§const RAW_BYTE_LEN: usize = 12usize
const RAW_BYTE_LEN: usize = 12usize
The raw size of this type, in bytes. Read more
source§impl Hash for SbitLineMetrics
impl Hash for SbitLineMetrics
source§impl Ord for SbitLineMetrics
impl Ord for SbitLineMetrics
source§fn cmp(&self, other: &SbitLineMetrics) -> Ordering
fn cmp(&self, other: &SbitLineMetrics) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for SbitLineMetrics
impl PartialEq for SbitLineMetrics
source§fn eq(&self, other: &SbitLineMetrics) -> bool
fn eq(&self, other: &SbitLineMetrics) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SbitLineMetrics
impl PartialOrd for SbitLineMetrics
source§fn partial_cmp(&self, other: &SbitLineMetrics) -> Option<Ordering>
fn partial_cmp(&self, other: &SbitLineMetrics) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<'a> SomeRecord<'a> for SbitLineMetrics
impl<'a> SomeRecord<'a> for SbitLineMetrics
fn traverse(self, data: FontData<'a>) -> RecordResolver<'a>
impl AnyBitPattern for SbitLineMetrics
impl Copy for SbitLineMetrics
impl Eq for SbitLineMetrics
impl StructuralPartialEq for SbitLineMetrics
Auto Trait Implementations§
impl Freeze for SbitLineMetrics
impl RefUnwindSafe for SbitLineMetrics
impl Send for SbitLineMetrics
impl Sync for SbitLineMetrics
impl Unpin for SbitLineMetrics
impl UnwindSafe for SbitLineMetrics
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
Mutably borrows from an owned value. Read more
source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
§type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.