diff options
author | Kirill Chibisov <contact@kchibisov.com> | 2023-12-08 01:33:33 +0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-08 01:33:33 +0400 |
commit | e34762beae5d5b6b261a2a61433761f9dbd45d37 (patch) | |
tree | 4b8758a21e6c1639db8a7858eb6d59beb52d7b67 /alacritty/src/renderer/text | |
parent | cb03806e2ab85674c45e87e1bb24dfe2fd1a918c (diff) | |
download | r-alacritty-e34762beae5d5b6b261a2a61433761f9dbd45d37.tar.gz r-alacritty-e34762beae5d5b6b261a2a61433761f9dbd45d37.tar.bz2 r-alacritty-e34762beae5d5b6b261a2a61433761f9dbd45d37.zip |
Update to crossfont 0.6.0
Diffstat (limited to 'alacritty/src/renderer/text')
-rw-r--r-- | alacritty/src/renderer/text/glyph_cache.rs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/alacritty/src/renderer/text/glyph_cache.rs b/alacritty/src/renderer/text/glyph_cache.rs index a750e4e7..957cde1a 100644 --- a/alacritty/src/renderer/text/glyph_cache.rs +++ b/alacritty/src/renderer/text/glyph_cache.rs @@ -275,13 +275,8 @@ impl GlyphCache { /// /// NOTE: To reload the renderers's fonts [`Self::reset_glyph_cache`] should be called /// afterwards. - pub fn update_font_size( - &mut self, - font: &Font, - scale_factor: f64, - ) -> Result<(), crossfont::Error> { + pub fn update_font_size(&mut self, font: &Font) -> Result<(), crossfont::Error> { // Update dpi scaling. - self.rasterizer.update_dpr(scale_factor as f32); self.font_offset = font.offset; self.glyph_offset = font.glyph_offset; @@ -296,7 +291,7 @@ impl GlyphCache { })?; let metrics = self.rasterizer.metrics(regular, font.size())?; - info!("Font size changed to {:?} with scale factor of {}", font.size(), scale_factor); + info!("Font size changed to {:?} px", font.size().as_px()); self.font_size = font.size(); self.font_key = regular; |