aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/display.c5
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;