pub struct GlyphCellKey {
pub font_hash: u64,
pub glyph_id: u16,
pub ppem: u16,
pub scale_fixed: u32,
pub subpx_x: u8,
pub subpx_y: u8,
}Expand description
Cache key for pre-rasterized glyph cells. Includes sub-pixel x/y fractional position quantized to 1/4 pixel.
Fields§
§font_hash: u64§glyph_id: u16§ppem: u16§scale_fixed: u32Scale factor encoded as fixed-point (scale * 65536) for unhinted glyphs. 0 for hinted glyphs (already in pixel coords).
subpx_x: u8Sub-pixel x position quantized to 1/4 pixel (0..3).
subpx_y: u8Sub-pixel y position quantized to 1/4 pixel (0..3).
Trait Implementations§
Source§impl Clone for GlyphCellKey
impl Clone for GlyphCellKey
Source§fn clone(&self) -> GlyphCellKey
fn clone(&self) -> GlyphCellKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GlyphCellKey
impl Debug for GlyphCellKey
Source§impl Hash for GlyphCellKey
impl Hash for GlyphCellKey
Source§impl PartialEq for GlyphCellKey
impl PartialEq for GlyphCellKey
Source§fn eq(&self, other: &GlyphCellKey) -> bool
fn eq(&self, other: &GlyphCellKey) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for GlyphCellKey
impl Eq for GlyphCellKey
impl StructuralPartialEq for GlyphCellKey
Auto Trait Implementations§
impl Freeze for GlyphCellKey
impl RefUnwindSafe for GlyphCellKey
impl Send for GlyphCellKey
impl Sync for GlyphCellKey
impl Unpin for GlyphCellKey
impl UnsafeUnpin for GlyphCellKey
impl UnwindSafe for GlyphCellKey
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more