Commit f8c5c546808c20c195ac3a9998c509943e4b56ee

David Turner 2021-06-16T09:54:49

Fix for issue 1063 See https://gitlab.freedesktop.org/freetype/freetype/-/issues/1063 for more details on the bug.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/src/autofit/afglobal.c b/src/autofit/afglobal.c
index 554733f..aedb74d 100644
--- a/src/autofit/afglobal.c
+++ b/src/autofit/afglobal.c
@@ -478,6 +478,10 @@
           {
             style = (AF_Style)( globals->glyph_styles[gindex] &
                                 AF_STYLE_UNASSIGNED           );
+            /* IMPORTANT: Clear the error code, see
+             * https://gitlab.freedesktop.org/freetype/freetype/-/issues/1063
+             */
+            error = 0;
             goto Again;
           }