Michael Stefaniuc : tools/sfnt2fon: Just skip all glyphs below 0x20.

Alexandre Julliard julliard at winehq.org
Fri Oct 20 07:19:59 CDT 2017


Module: wine
Branch: stable
Commit: a4cea8118a92f90c60cb13c8f292ecacc5bc6b83
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=a4cea8118a92f90c60cb13c8f292ecacc5bc6b83

Author: Michael Stefaniuc <mstefani at winehq.org>
Date:   Thu Sep 28 00:23:41 2017 +0200

tools/sfnt2fon: Just skip all glyphs below 0x20.

Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit 89e79d8144308a24676ef069d567a14655985b0c)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>

---

 tools/sfnt2fon/sfnt2fon.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tools/sfnt2fon/sfnt2fon.c b/tools/sfnt2fon/sfnt2fon.c
index ea915da..25f0763 100644
--- a/tools/sfnt2fon/sfnt2fon.c
+++ b/tools/sfnt2fon/sfnt2fon.c
@@ -439,9 +439,9 @@ static struct fontinfo *fill_fontinfo( const char *face_name, int ppem, int enc,
         el = 0;
 
     first_char = FT_Get_First_Char(face, &gi);
-    if(first_char == 0xd) /* fontforge's first glyph is 0xd, we'll catch this and skip it */
-        first_char = 32; /* FT_Get_Next_Char for some reason returns too high
-                            number in this case */
+    if(first_char < 0x20)  /* Ignore glyphs below 0x20 */
+        first_char = 0x20; /* FT_Get_Next_Char for some reason returns too high
+                              number in this case */
 
     info = calloc( 1, sizeof(*info) );
 




More information about the wine-cvs mailing list