Skip to content

Instantly share code, notes, and snippets.

@bfredl
Created January 15, 2020 12:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bfredl/733060ff6965c917d73626ae57bc4884 to your computer and use it in GitHub Desktop.
Save bfredl/733060ff6965c917d73626ae57bc4884 to your computer and use it in GitHub Desktop.
hack
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