From 4ea87b6f9d61c7c8994f4c3e6e473d94c0863142 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Tue, 10 May 2016 14:30:27 -0400 Subject: fix rendering of narrow glyphs and glyphs of the wrong height --- src/display.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/display.c b/src/display.c index 09073c9..5558725 100644 --- a/src/display.c +++ b/src/display.c @@ -413,7 +413,10 @@ static int runes_display_glyphs_are_monospace(RunesTerm *t, int width) return 0; } pango_layout_get_pixel_size(display->layout, &w, &h); - if (w > display->fontx * width) { + if (w != display->fontx * width) { + return 0; + } + if (h != display->fonty) { return 0; } return 1; -- cgit v1.2.3-54-g00ecf