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: ID
Font ID
glyph_id: u16
Glyph ID
font_size: i32
Font size in pixels
x_bin: SubpixelBin
Binning of fractional X offset
y_bin: SubpixelBin
Binning 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