diff --git a/wezterm-gui/src/gui/glyphcache.rs b/wezterm-gui/src/gui/glyphcache.rs index 3b9f5a736..4d434dc87 100644 --- a/wezterm-gui/src/gui/glyphcache.rs +++ b/wezterm-gui/src/gui/glyphcache.rs @@ -197,7 +197,8 @@ impl GlyphCache { } let y_scale = base_metrics.cell_height.get() / idx_metrics.cell_height.get(); - let x_scale = base_metrics.cell_width.get() / idx_metrics.cell_width.get(); + let x_scale = + base_metrics.cell_width.get() / (idx_metrics.cell_width.get() / info.num_cells as f64); let aspect = (idx_metrics.cell_height / idx_metrics.cell_width).get(); let is_square = aspect >= 0.9 && aspect <= 1.1;