summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Duerr <contact@christianduerr.com>2021-05-20 19:48:32 +0000
committerGitHub <noreply@github.com>2021-05-20 19:48:32 +0000
commit6c00df818c737bed386cfeb5e5b0776fa818f251 (patch)
tree45ed891550c09ad85a50b10a61a2b121f1829a8d
parent4d7889acbd3409d289fb78f1be7ba7aa27bbb87b (diff)
downloadalacritty-6c00df818c737bed386cfeb5e5b0776fa818f251.tar.gz
alacritty-6c00df818c737bed386cfeb5e5b0776fa818f251.zip
Fix startup caching of bold glyphs
-rw-r--r--alacritty/src/renderer/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/alacritty/src/renderer/mod.rs b/alacritty/src/renderer/mod.rs
index bac8225d..48fcbf20 100644
--- a/alacritty/src/renderer/mod.rs
+++ b/alacritty/src/renderer/mod.rs
@@ -364,7 +364,7 @@ impl GlyphCache {
/// Prefetch glyphs that are almost guaranteed to be loaded anyways.
fn load_common_glyphs<L: LoadGlyph>(&mut self, loader: &mut L) {
self.load_glyphs_for_font(self.font_key, loader);
- self.load_glyphs_for_font(self.bold_italic_key, loader);
+ self.load_glyphs_for_font(self.bold_key, loader);
self.load_glyphs_for_font(self.italic_key, loader);
self.load_glyphs_for_font(self.bold_italic_key, loader);
}