Struct read_fonts::tables::vorg::VertOriginYMetrics
source · #[repr(C, packed(1))]pub struct VertOriginYMetrics {
pub glyph_index: BigEndian<GlyphId16>,
pub vert_origin_y: BigEndian<i16>,
}
Expand description
Vertical origin Y metrics record.
Fields§
§glyph_index: BigEndian<GlyphId16>
Glyph index.
vert_origin_y: BigEndian<i16>
Y coordinate, in the font’s design coordinate system, of the glyph’s vertical origin.
Implementations§
source§impl VertOriginYMetrics
impl VertOriginYMetrics
sourcepub fn glyph_index(&self) -> GlyphId16
pub fn glyph_index(&self) -> GlyphId16
Glyph index.
sourcepub fn vert_origin_y(&self) -> i16
pub fn vert_origin_y(&self) -> i16
Y coordinate, in the font’s design coordinate system, of the glyph’s vertical origin.
Trait Implementations§
source§impl Clone for VertOriginYMetrics
impl Clone for VertOriginYMetrics
source§fn clone(&self) -> VertOriginYMetrics
fn clone(&self) -> VertOriginYMetrics
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 VertOriginYMetrics
impl Debug for VertOriginYMetrics
source§impl FixedSize for VertOriginYMetrics
impl FixedSize for VertOriginYMetrics
source§const RAW_BYTE_LEN: usize = 4usize
const RAW_BYTE_LEN: usize = 4usize
The raw size of this type, in bytes. Read more
source§impl Hash for VertOriginYMetrics
impl Hash for VertOriginYMetrics
source§impl Ord for VertOriginYMetrics
impl Ord for VertOriginYMetrics
source§fn cmp(&self, other: &VertOriginYMetrics) -> Ordering
fn cmp(&self, other: &VertOriginYMetrics) -> 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 VertOriginYMetrics
impl PartialEq for VertOriginYMetrics
source§impl PartialOrd for VertOriginYMetrics
impl PartialOrd for VertOriginYMetrics
source§impl<'a> SomeRecord<'a> for VertOriginYMetrics
impl<'a> SomeRecord<'a> for VertOriginYMetrics
fn traverse(self, data: FontData<'a>) -> RecordResolver<'a>
impl AnyBitPattern for VertOriginYMetrics
impl Copy for VertOriginYMetrics
impl Eq for VertOriginYMetrics
impl StructuralPartialEq for VertOriginYMetrics
Auto Trait Implementations§
impl Freeze for VertOriginYMetrics
impl RefUnwindSafe for VertOriginYMetrics
impl Send for VertOriginYMetrics
impl Sync for VertOriginYMetrics
impl Unpin for VertOriginYMetrics
impl UnwindSafe for VertOriginYMetrics
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,
source§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
.source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)