From df18864aa9995694a653404c4e70a2d4caa24064 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Sun, 10 Sep 2023 13:46:52 +0800 Subject: [PATCH] Update Android port * src/sfntfont.c (sfntfont_probe_widths): Prevent widths of glyphs representing control characters from affecting the average width. --- src/sfntfont.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sfntfont.c b/src/sfntfont.c index 410fafeddb6..877f7a3830d 100644 --- a/src/sfntfont.c +++ b/src/sfntfont.c @@ -2610,7 +2610,7 @@ sfntfont_probe_widths (struct sfnt_font_info *font_info) /* Next, loop through the common ASCII characters. Tally up their advance widths and set space_width if necessary. */ - for (i = 0; i < 127; ++i) + for (i = 32; i < 127; ++i) { glyph = sfntfont_lookup_glyph (font_info, i); -- 2.39.5