diff options
Diffstat (limited to 'src/renderer/mod.rs')
-rw-r--r-- | src/renderer/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/renderer/mod.rs b/src/renderer/mod.rs index 318a1835..9d52b024 100644 --- a/src/renderer/mod.rs +++ b/src/renderer/mod.rs @@ -295,7 +295,7 @@ impl GlyphCache { pub fn update_font_size<L: LoadGlyph>( &mut self, font: &config::Font, - delta: i8, + size: font::Size, loader: &mut L ) -> Result<(), font::Error> { // Clear currently cached data in both GL and the registry @@ -303,8 +303,8 @@ impl GlyphCache { self.cache = HashMap::default(); // Recompute font keys - let font = font.to_owned().with_size_delta(delta as _); - println!("{:?}", font.size); + let font = font.to_owned().with_size(size); + info!("Font size changed: {:?}", font.size); let (regular, bold, italic) = Self::compute_font_keys(&font, &mut self.rasterizer)?; self.rasterizer.get_glyph(&GlyphKey { font_key: regular, c: 'm', size: font.size() })?; let metrics = self.rasterizer.metrics(regular)?; |