#[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
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
.