From f4e96689529168cc52f022e3867c73a9495fce75 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sun, 9 May 2021 07:19:18 -0700 Subject: [PATCH] fix scaling of `-->` ligature in base font refs: https://github.com/wez/wezterm/issues/699 --- wezterm-gui/src/glyphcache.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wezterm-gui/src/glyphcache.rs b/wezterm-gui/src/glyphcache.rs index afeb65abb..c696c1850 100644 --- a/wezterm-gui/src/glyphcache.rs +++ b/wezterm-gui/src/glyphcache.rs @@ -489,7 +489,7 @@ impl GlyphCache { let scale; if info.font_idx == 0 { // We are the base font - scale = if allow_width_overflow { + scale = if allow_width_overflow || glyph.width as f64 <= max_pixel_width { 1.0 } else { // Scale the glyph to fit in its number of cells