1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-18 13:55:23 -05:00

Add font metric caching

This commit is contained in:
Kirill Chibisov 2020-01-25 02:42:23 +03:00 committed by Christian Duerr
parent bdd28f4766
commit f48204eee2
2 changed files with 2 additions and 3 deletions

View file

@ -37,6 +37,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Stack overflow when printing shader creation error - Stack overflow when printing shader creation error
- Underline position for bitmap fonts - Underline position for bitmap fonts
- Selection rotating outside of scrolling region - Selection rotating outside of scrolling region
- Throughput performance problems caused by excessive font metric queries
### Removed ### Removed

View file

@ -341,9 +341,7 @@ impl GlyphCache {
} }
pub fn font_metrics(&self) -> font::Metrics { pub fn font_metrics(&self) -> font::Metrics {
self.rasterizer self.metrics
.metrics(self.font_key, self.font_size)
.expect("metrics load since font is loaded at glyph cache creation")
} }
// Calculate font metrics without access to a glyph cache // Calculate font metrics without access to a glyph cache