Lagrange [release]
Text: Monospace and zero-advance glyphs
[1mdiff --git a/src/ui/text.c b/src/ui/text.c[m
[1mindex ee838ce7..8354a365 100644[m
[1m--- a/src/ui/text.c[m
[1m+++ b/src/ui/text.c[m
[36m@@ -908,8 +908,8 @@[m [mstatic iRect run_Font_(iFont *d, const iRunArgs *args) {[m
is monospaced. Except with Japanese script, that's larger than the normal monospace. */[m
const iBool useMonoAdvance =[m
monoAdvance > 0 && !isJapanese_FontId(fontId_Text_(glyph->font));[m
[31m- const float advance = (useMonoAdvance ? monoAdvance : glyph->advance);[m
[31m- if (!isMeasuring_(mode)) {[m
[32m+[m[32m const float advance = (useMonoAdvance && glyph->advance > 0 ? monoAdvance : glyph->advance);[m
[32m+[m[32m if (!isMeasuring_(mode) && ch != 0x20 /* don't bother rendering spaces */) {[m
if (useMonoAdvance && dst.w > advance && glyph->font != d && !isEmoji) {[m
/* Glyphs from a different font may need recentering to look better. */[m
dst.x -= (dst.w - advance) / 2;[m