Struct read_fonts::tables::bitmap::BigGlyphMetrics
source · #[repr(C, packed(1))]pub struct BigGlyphMetrics {
pub height: u8,
pub width: u8,
pub hori_bearing_x: BigEndian<i8>,
pub hori_bearing_y: BigEndian<i8>,
pub hori_advance: u8,
pub vert_bearing_x: BigEndian<i8>,
pub vert_bearing_y: BigEndian<i8>,
pub vert_advance: u8,
}
Expand description
BigGlyphMetrics record.
Fields§
§height: u8
Number of rows of data.
width: u8
Number of columns of data.
hori_bearing_x: BigEndian<i8>
Distance in pixels from the horizontal origin to the left edge of the bitmap.
hori_bearing_y: BigEndian<i8>
Distance in pixels from the horizontal origin to the top edge of the bitmap.
hori_advance: u8
Horizontal advance width in pixels.
vert_bearing_x: BigEndian<i8>
Distance in pixels from the vertical origin to the left edge of the bitmap.
vert_bearing_y: BigEndian<i8>
Distance in pixels from the vertical origin to the top edge of the bitmap.
vert_advance: u8
Vertical advance width in pixels.
Implementations§
source§impl BigGlyphMetrics
impl BigGlyphMetrics
sourcepub fn hori_bearing_x(&self) -> i8
pub fn hori_bearing_x(&self) -> i8
Distance in pixels from the horizontal origin to the left edge of the bitmap.
sourcepub fn hori_bearing_y(&self) -> i8
pub fn hori_bearing_y(&self) -> i8
Distance in pixels from the horizontal origin to the top edge of the bitmap.
sourcepub fn hori_advance(&self) -> u8
pub fn hori_advance(&self) -> u8
Horizontal advance width in pixels.
sourcepub fn vert_bearing_x(&self) -> i8
pub fn vert_bearing_x(&self) -> i8
Distance in pixels from the vertical origin to the left edge of the bitmap.
sourcepub fn vert_bearing_y(&self) -> i8
pub fn vert_bearing_y(&self) -> i8
Distance in pixels from the vertical origin to the top edge of the bitmap.
sourcepub fn vert_advance(&self) -> u8
pub fn vert_advance(&self) -> u8
Vertical advance width in pixels.
Trait Implementations§
source§impl Clone for BigGlyphMetrics
impl Clone for BigGlyphMetrics
source§fn clone(&self) -> BigGlyphMetrics
fn clone(&self) -> BigGlyphMetrics
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BigGlyphMetrics
impl Debug for BigGlyphMetrics
source§impl FixedSize for BigGlyphMetrics
impl FixedSize for BigGlyphMetrics
source§const RAW_BYTE_LEN: usize = 8usize
const RAW_BYTE_LEN: usize = 8usize
source§impl Hash for BigGlyphMetrics
impl Hash for BigGlyphMetrics
source§impl Ord for BigGlyphMetrics
impl Ord for BigGlyphMetrics
source§fn cmp(&self, other: &BigGlyphMetrics) -> Ordering
fn cmp(&self, other: &BigGlyphMetrics) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for BigGlyphMetrics
impl PartialEq for BigGlyphMetrics
source§impl PartialOrd for BigGlyphMetrics
impl PartialOrd for BigGlyphMetrics
source§impl<'a> SomeRecord<'a> for BigGlyphMetrics
impl<'a> SomeRecord<'a> for BigGlyphMetrics
fn traverse(self, data: FontData<'a>) -> RecordResolver<'a>
impl AnyBitPattern for BigGlyphMetrics
impl Copy for BigGlyphMetrics
impl Eq for BigGlyphMetrics
impl StructuralPartialEq for BigGlyphMetrics
Auto Trait Implementations§
impl Freeze for BigGlyphMetrics
impl RefUnwindSafe for BigGlyphMetrics
impl Send for BigGlyphMetrics
impl Sync for BigGlyphMetrics
impl Unpin for BigGlyphMetrics
impl UnwindSafe for BigGlyphMetrics
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> 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
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)
clone_to_uninit
)