mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-11 21:13:02 +00:00
Include scale factor in glyph cache keys
This commit is contained in:
parent
66e27b7420
commit
23fbeaf978
1 changed files with 2 additions and 0 deletions
|
@ -12,6 +12,7 @@ use std::{borrow::Cow, collections::HashMap, sync::Arc};
|
||||||
struct GlyphDescriptor {
|
struct GlyphDescriptor {
|
||||||
font_id: FontId,
|
font_id: FontId,
|
||||||
font_size: OrderedFloat<f32>,
|
font_size: OrderedFloat<f32>,
|
||||||
|
scale_factor: OrderedFloat<f32>,
|
||||||
glyph_id: GlyphId,
|
glyph_id: GlyphId,
|
||||||
subpixel_variant: (u8, u8),
|
subpixel_variant: (u8, u8),
|
||||||
}
|
}
|
||||||
|
@ -86,6 +87,7 @@ impl SpriteCache {
|
||||||
.entry(GlyphDescriptor {
|
.entry(GlyphDescriptor {
|
||||||
font_id,
|
font_id,
|
||||||
font_size: OrderedFloat(font_size),
|
font_size: OrderedFloat(font_size),
|
||||||
|
scale_factor: OrderedFloat(scale_factor),
|
||||||
glyph_id,
|
glyph_id,
|
||||||
subpixel_variant,
|
subpixel_variant,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue