summarylogtreecommitdiffstats
path: root/0001-tools-sfnt2fon-Just-skip-all-glyphs-below-0x20.patch
diff options
context:
space:
mode:
Diffstat (limited to '0001-tools-sfnt2fon-Just-skip-all-glyphs-below-0x20.patch')
-rw-r--r--0001-tools-sfnt2fon-Just-skip-all-glyphs-below-0x20.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/0001-tools-sfnt2fon-Just-skip-all-glyphs-below-0x20.patch b/0001-tools-sfnt2fon-Just-skip-all-glyphs-below-0x20.patch
new file mode 100644
index 000000000000..5aeb58f0f0f9
--- /dev/null
+++ b/0001-tools-sfnt2fon-Just-skip-all-glyphs-below-0x20.patch
@@ -0,0 +1,31 @@
+From be97fe9154f3666ed18578427427a1af5a0d469f Mon Sep 17 00:00:00 2001
+From: Michael Stefaniuc <mstefani@winehq.org>
+Date: Thu, 28 Sep 2017 00:23:41 +0200
+Subject: [PATCH 1/2] tools/sfnt2fon: Just skip all glyphs below 0x20.
+
+Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
+Signed-off-by: Alexandre Julliard <julliard@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 ea915dac4c..25f0763872 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) );
+
+--
+2.14.2
+