diff options
author | Kirill Chibisov <contact@kchibisov.com> | 2022-03-11 12:34:15 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-11 12:34:15 +0300 |
commit | 7312f33f6711cccd04c3e34d25b9b11514cbb90e (patch) | |
tree | a5cbddcbf1cac197abef20e645ccb0ee8d9889d3 | |
parent | 0965773657b9d3cc6917cf980110509dcc82426f (diff) | |
download | alacritty-7312f33f6711cccd04c3e34d25b9b11514cbb90e.tar.gz alacritty-7312f33f6711cccd04c3e34d25b9b11514cbb90e.zip |
Fix `font.glyph_offset` not live reloading
Fixes #5944.
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | alacritty/src/renderer/text/glyph_cache.rs | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 0e79c274..4a33c9bc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Creating the IPC socket failing if WAYLAND_DISPLAY contains an absolute path - Crash when resetting the terminal while in vi mode +- `font.glyph_offset` not live reloading ## 0.10.1 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) = |