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:
1 parent
501836fece
commit
f97df9307a
1 file changed
+2
-2
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user