diff options
author | Jesse Luehrs <doy@tozt.net> | 2016-05-10 14:30:27 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2016-05-10 14:30:27 -0400 |
commit | 4ea87b6f9d61c7c8994f4c3e6e473d94c0863142 (patch) | |
tree | 58f92eb8582be8b83f926568cb2500830e4934bc | |
parent | 9a30261d2f828479458fa6d7684285307b05db17 (diff) | |
download | runes-4ea87b6f9d61c7c8994f4c3e6e473d94c0863142.tar.gz runes-4ea87b6f9d61c7c8994f4c3e6e473d94c0863142.zip |
fix rendering of narrow glyphs and glyphs of the wrong height
-rw-r--r-- | src/display.c | 5 |
1 files changed, 4 insertions, 1 deletions
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; |