pub struct SoftwareGlyphAtlasKey {
pub font_hash: u64,
pub glyph_id: u32,
pub scale_x_bits: u32,
pub scale_y_bits: u32,
pub embolden_px_bits: u32,
pub slant_bits: u32,
}Expand description
Identifies one rasterized glyph in a glyph atlas: the font, the glyph, and the scale and the synthetic styling it was drawn with.
Fields§
§font_hash: u64Hash of the font’s content and variation coordinates.
glyph_id: u32Glyph index within the font.
scale_x_bits: u32Bit pattern of the horizontal glyph scale in device pixels per em.
scale_y_bits: u32Bit pattern of the vertical glyph scale in device pixels per em.
embolden_px_bits: u32Bit pattern of the synthetic bold growth of the outline in device pixels, zero for none.
slant_bits: u32Bit pattern of the synthetic italic slant, as horizontal shift per unit of height, or zero for none.
Trait Implementations§
Source§impl Clone for SoftwareGlyphAtlasKey
impl Clone for SoftwareGlyphAtlasKey
impl Copy for SoftwareGlyphAtlasKey
Source§impl Debug for SoftwareGlyphAtlasKey
impl Debug for SoftwareGlyphAtlasKey
impl Eq for SoftwareGlyphAtlasKey
Source§impl Hash for SoftwareGlyphAtlasKey
impl Hash for SoftwareGlyphAtlasKey
Source§impl PartialEq for SoftwareGlyphAtlasKey
impl PartialEq for SoftwareGlyphAtlasKey
impl StructuralPartialEq for SoftwareGlyphAtlasKey
Auto Trait Implementations§
impl Freeze for SoftwareGlyphAtlasKey
impl RefUnwindSafe for SoftwareGlyphAtlasKey
impl Send for SoftwareGlyphAtlasKey
impl Sync for SoftwareGlyphAtlasKey
impl Unpin for SoftwareGlyphAtlasKey
impl UnsafeUnpin for SoftwareGlyphAtlasKey
impl UnwindSafe for SoftwareGlyphAtlasKey
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