aboutsummaryrefslogtreecommitdiff
path: root/alacritty/src/renderer/mod.rs
diff options
context:
space:
mode:
authorKirill Chibisov <contact@kchibisov.com>2020-01-25 02:42:23 +0300
committerChristian Duerr <contact@christianduerr.com>2020-01-25 00:42:23 +0100
commitf48204eee20ddb0a3b23c10d27e3c75fbcd3f7f3 (patch)
treef4671121f45fa1084ce92f3de643e13cb442edc0 /alacritty/src/renderer/mod.rs
parentbdd28f4766a39ec679cc7422d5cff5c6e586ae43 (diff)
downloadr-alacritty-f48204eee20ddb0a3b23c10d27e3c75fbcd3f7f3.tar.gz
r-alacritty-f48204eee20ddb0a3b23c10d27e3c75fbcd3f7f3.tar.bz2
r-alacritty-f48204eee20ddb0a3b23c10d27e3c75fbcd3f7f3.zip
Add font metric caching
Diffstat (limited to 'alacritty/src/renderer/mod.rs')
-rw-r--r--alacritty/src/renderer/mod.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/alacritty/src/renderer/mod.rs b/alacritty/src/renderer/mod.rs
index 2a1d8721..a099b0de 100644
--- a/alacritty/src/renderer/mod.rs
+++ b/alacritty/src/renderer/mod.rs
@@ -341,9 +341,7 @@ impl GlyphCache {
}
pub fn font_metrics(&self) -> font::Metrics {
- self.rasterizer
- .metrics(self.font_key, self.font_size)
- .expect("metrics load since font is loaded at glyph cache creation")
+ self.metrics
}
// Calculate font metrics without access to a glyph cache