Struct cosmic_text::CacheKey
source · pub struct CacheKey {
pub font_id: ID,
pub glyph_id: u16,
pub font_size: i32,
pub x_bin: SubpixelBin,
pub y_bin: SubpixelBin,
}Expand description
Key for building a glyph cache
Fields§
§font_id: IDFont ID
glyph_id: u16Glyph ID
font_size: i32Font size in pixels
x_bin: SubpixelBinBinning of fractional X offset
y_bin: SubpixelBinBinning of fractional Y offset
Implementations§
Trait Implementations§
source§impl Ord for CacheKey
impl Ord for CacheKey
source§impl PartialOrd<CacheKey> for CacheKey
impl PartialOrd<CacheKey> for CacheKey
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read more