aboutsummaryrefslogtreecommitdiff
path: root/alacritty/src
diff options
context:
space:
mode:
authorKirill Chibisov <contact@kchibisov.com>2022-03-11 12:34:15 +0300
committerGitHub <noreply@github.com>2022-03-11 12:34:15 +0300
commit7312f33f6711cccd04c3e34d25b9b11514cbb90e (patch)
treea5cbddcbf1cac197abef20e645ccb0ee8d9889d3 /alacritty/src
parent0965773657b9d3cc6917cf980110509dcc82426f (diff)
downloadr-alacritty-7312f33f6711cccd04c3e34d25b9b11514cbb90e.tar.gz
r-alacritty-7312f33f6711cccd04c3e34d25b9b11514cbb90e.tar.bz2
r-alacritty-7312f33f6711cccd04c3e34d25b9b11514cbb90e.zip
Fix `font.glyph_offset` not live reloading
Fixes #5944.
Diffstat (limited to 'alacritty/src')
-rw-r--r--alacritty/src/renderer/text/glyph_cache.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/alacritty/src/renderer/text/glyph_cache.rs b/alacritty/src/renderer/text/glyph_cache.rs
index c75cad7a..b57b10b7 100644
--- a/alacritty/src/renderer/text/glyph_cache.rs
+++ b/alacritty/src/renderer/text/glyph_cache.rs
@@ -281,6 +281,7 @@ impl GlyphCache {
// Update dpi scaling.
self.rasterizer.update_dpr(scale_factor as f32);
self.font_offset = font.offset;
+ self.glyph_offset = font.glyph_offset;
// Recompute font keys.
let (regular, bold, italic, bold_italic) =