]> git.eshelyaron.com Git - emacs.git/commitdiff
Update Android port
authorPo Lu <luangruo@yahoo.com>
Sun, 10 Sep 2023 05:46:52 +0000 (13:46 +0800)
committerPo Lu <luangruo@yahoo.com>
Sun, 10 Sep 2023 05:48:39 +0000 (13:48 +0800)
* src/sfntfont.c (sfntfont_probe_widths): Prevent widths of
glyphs representing control characters from affecting the
average width.

src/sfntfont.c

index 410fafeddb69db6865842befd643eec96c7abb40..877f7a3830d7635cbe558aac79992ee24f35fc76 100644 (file)
@@ -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);