aboutsummaryrefslogtreecommitdiff
path: root/alacritty/src/renderer/text/glyph_cache.rs
diff options
context:
space:
mode:
Diffstat (limited to 'alacritty/src/renderer/text/glyph_cache.rs')
-rw-r--r--alacritty/src/renderer/text/glyph_cache.rs9
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;