Created
January 15, 2020 12:58
-
-
Save bfredl/733060ff6965c917d73626ae57bc4884 to your computer and use it in GitHub Desktop.
hack
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/pangoterm.c b/pangoterm.c | |
index 5985b51..7d93af6 100644 | |
--- a/pangoterm.c | |
+++ b/pangoterm.c | |
@@ -2187,8 +2187,8 @@ void pangoterm_init_font(PangoTerm *pt) { | |
int height = pango_font_metrics_get_ascent(metrics) + pango_font_metrics_get_descent(metrics); | |
- pt->cell_width_pango = width; | |
pt->cell_width = PANGO_PIXELS_CEIL(width); | |
+ pt->cell_width_pango = PANGO_SCALE*pt->cell_width; | |
pt->cell_height = PANGO_PIXELS_CEIL(height); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment