shithub: freetype+ttf2subf

Download patch

ref: bf8f100d2c46ccc04ed8cea8668d88c0f6c37317
parent: fb550bf4666586eedf840f7331c4796ad0739f1d
author: Werner Lemberg <[email protected]>
date: Tue Apr 5 07:43:58 EDT 2016

[autofit] Provide dummy blue zone for pseudo script `none'.

Even if the dummy hinter is used as the handler for `none' (which
doesn't use blue zones), it is more consistent than the old value
(which was 0), pointing to Arabic...

* src/autofit/afblue.dat: Add `AF_BLUE_STRINGSET_NONE'.
* src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.

* src/autofit/afstyles.h (none_dflt): Use AF_BLUE_STRINGSET_NONE.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+2016-04-05  Werner Lemberg  <[email protected]>
+
+	[autofit] Provide dummy blue zone for pseudo script `none'.
+
+	Even if the dummy hinter is used as the handler for `none' (which
+	doesn't use blue zones), it is more consistent than the old value
+	(which was 0), pointing to Arabic...
+
+	* src/autofit/afblue.dat: Add `AF_BLUE_STRINGSET_NONE'.
+	* src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+	* src/autofit/afstyles.h (none_dflt): Use AF_BLUE_STRINGSET_NONE.
+
 2016-03-30  Werner Lemberg  <[email protected]>
 
 	* src/pfr/pfrload.c (pfr_aux_name_load): Thinko (#47567).
--- a/src/autofit/afblue.c
+++ b/src/autofit/afblue.c
@@ -310,6 +310,7 @@
     { AF_BLUE_STRING_MYANMAR_ASCENDER,  AF_BLUE_PROPERTY_LATIN_TOP        },
     { AF_BLUE_STRING_MYANMAR_DESCENDER, 0                                 },
     { AF_BLUE_STRING_MAX,               0                                 },
+    { AF_BLUE_STRING_MAX, 0 },
     { AF_BLUE_STRING_SINHALA_TOP,       AF_BLUE_PROPERTY_LATIN_TOP },
     { AF_BLUE_STRING_SINHALA_BOTTOM,    0                          },
     { AF_BLUE_STRING_SINHALA_DESCENDER, 0                          },
--- a/src/autofit/afblue.dat
+++ b/src/autofit/afblue.dat
@@ -534,6 +534,9 @@
     { AF_BLUE_STRING_MYANMAR_DESCENDER, 0                                 }
     { AF_BLUE_STRING_MAX,               0                                 }
 
+  AF_BLUE_STRINGSET_NONE
+    { AF_BLUE_STRING_MAX, 0 }
+
   AF_BLUE_STRINGSET_SINH
     { AF_BLUE_STRING_SINHALA_TOP,       AF_BLUE_PROPERTY_LATIN_TOP }
     { AF_BLUE_STRING_SINHALA_BOTTOM,    0                          }
--- a/src/autofit/afblue.h
+++ b/src/autofit/afblue.h
@@ -222,11 +222,12 @@
     AF_BLUE_STRINGSET_LATP = 64,
     AF_BLUE_STRINGSET_MLYM = 71,
     AF_BLUE_STRINGSET_MYMR = 74,
-    AF_BLUE_STRINGSET_SINH = 79,
-    AF_BLUE_STRINGSET_TAML = 83,
-    AF_BLUE_STRINGSET_TELU = 86,
-    AF_BLUE_STRINGSET_THAI = 89,
-    af_blue_2_1 = 97,
+    AF_BLUE_STRINGSET_NONE = 79,
+    AF_BLUE_STRINGSET_SINH = 80,
+    AF_BLUE_STRINGSET_TAML = 84,
+    AF_BLUE_STRINGSET_TELU = 87,
+    AF_BLUE_STRINGSET_THAI = 90,
+    af_blue_2_1 = 98,
 #ifdef AF_CONFIG_OPTION_CJK
     AF_BLUE_STRINGSET_HANI = af_blue_2_1 + 0,
     af_blue_2_1_1 = af_blue_2_1 + 2,
--- a/src/autofit/afstyles.h
+++ b/src/autofit/afstyles.h
@@ -186,7 +186,7 @@
          "no style",
          AF_WRITING_SYSTEM_DUMMY,
          AF_SCRIPT_NONE,
-         (AF_Blue_Stringset)0,
+         AF_BLUE_STRINGSET_NONE,
          AF_COVERAGE_DEFAULT )
 
   STYLE( sinh_dflt, SINH_DFLT,