fix scaling for square glyphs

a copy-paste/transcription error had the y value divided by the cell
width rather than the x value.

refs: https://github.com/wez/wezterm/issues/707
This commit is contained in:
Wez Furlong committed 2021-04-23 21:03:10 -07:00
1 parent 501836fece
commit f97df9307a
1 file changed
+2 -2
+2 -2
View File
@@ -478,8 +478,8 @@ impl<T: Texture2d> GlyphCache<T> {
{
// If we know the cap height ratio for both fonts, we can scale
// the second one to match the cap height of the first
x_scale = base_cap / cap;
y_scale = x_scale / info.num_cells as f64;
y_scale = base_cap / cap;
x_scale = y_scale / info.num_cells as f64;
} else {
// Otherwise, we scale based on the ratio of the metrics for
// the two fonts.