]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't respect ROUND_XY_TO_GRID when decomposing uninterpreted glyph
authorPo Lu <luangruo@yahoo.com>
Mon, 5 Feb 2024 09:17:51 +0000 (17:17 +0800)
committerEshel Yaron <me@eshelyaron.com>
Wed, 7 Feb 2024 10:51:47 +0000 (11:51 +0100)
* src/sfnt.c (sfnt_decompose_compound_glyph): Remove useless
code; don't pretend to round glyph coordinates.

(cherry picked from commit 98d62c5f7675b24ad66e010765ce3012046f2ff8)

src/sfnt.c

index 6df43af42937b7cd09396f981a5ceb98517f6ec8..8598b052044153f4cb2886c179bd7e64f13b4d04 100644 (file)
@@ -2798,12 +2798,6 @@ sfnt_decompose_compound_glyph (struct sfnt_glyph *glyph,
          if (component->flags & 04000) /* SCALED_COMPONENT_OFFSET */
            sfnt_transform_coordinates (component, &x, &y, 1,
                                        0, 0);
-
-         if (component->flags & 04) /* ROUND_XY_TO_GRID */
-           {
-             x = sfnt_round_fixed (x);
-             y = sfnt_round_fixed (y);
-           }
        }
       else
        {
@@ -20800,8 +20794,8 @@ main (int argc, char **argv)
       return 1;
     }
 
-#define FANCY_PPEM 12
-#define EASY_PPEM  12
+#define FANCY_PPEM 18
+#define EASY_PPEM  18
 
   interpreter = NULL;
   head = sfnt_read_head_table (fd, font);