shithub: freetype+ttf2subf

Download patch

ref: c13526e6af366cadb505f42ca61d4e69a0cac639
parent: b38ca3cbebd1da222dec4ebff0560cfe9a6802c9
author: Werner Lemberg <[email protected]>
date: Tue Dec 8 04:48:50 EST 2015

* src/autofit/afblue.dat: Add more Khmer clusters.

Some fonts have incorrect ligatures; we need more samples to get a
good mean value.

* src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
 2015-12-06  Werner Lemberg  <[email protected]>
 
+	* src/autofit/afblue.dat: Add more Khmer clusters.
+
+	Some fonts have incorrect ligatures; we need more samples to get a
+	good mean value.
+
+	* src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+2015-12-06  Werner Lemberg  <[email protected]>
+
 	[autofit] Typos.
 
 	* src/autofit/afshaper.c (af_shaper_buf_create, af_shaper_get_elem)
--- a/src/autofit/afblue.c
+++ b/src/autofit/afblue.c
@@ -68,9 +68,9 @@
     '\0',
     '\xE1', '\x9E', '\x81', ' ', '\xE1', '\x9E', '\x83', ' ', '\xE1', '\x9E', '\x85', ' ', '\xE1', '\x9E', '\x8B', ' ', '\xE1', '\x9E', '\x94', ' ', '\xE1', '\x9E', '\x98', ' ', '\xE1', '\x9E', '\x99', ' ', '\xE1', '\x9E', '\xB2',  /* ខ ឃ ច ឋ ប ម យ ឲ */
     '\0',
-    '\xE1', '\x9E', '\x8F', '\xE1', '\x9F', '\x92', '\xE1', '\x9E', '\x9A', ' ', '\xE1', '\x9E', '\x9A', '\xE1', '\x9F', '\x80', ' ', '\xE1', '\x9E', '\xB2', '\xE1', '\x9F', '\x92', '\xE1', '\x9E', '\x99',  /* ត្រ រៀ ឲ្យ */
+    '\xE1', '\x9E', '\x8F', '\xE1', '\x9F', '\x92', '\xE1', '\x9E', '\x9A', ' ', '\xE1', '\x9E', '\x9A', '\xE1', '\x9F', '\x80', ' ', '\xE1', '\x9E', '\xB2', '\xE1', '\x9F', '\x92', '\xE1', '\x9E', '\x99', ' ', '\xE1', '\x9E', '\xA2', '\xE1', '\x9E', '\xBF',  /* ត្រ រៀ ឲ្យ អឿ */
     '\0',
-    '\xE1', '\x9E', '\x84', '\xE1', '\x9F', '\x92', '\xE1', '\x9E', '\x81', '\xE1', '\x9F', '\x92', '\xE1', '\x9E', '\x99', ' ', '\xE1', '\x9E', '\x80', '\xE1', '\x9F', '\x92', '\xE1', '\x9E', '\x94', '\xE1', '\x9F', '\x80',  /* ង្ខ្យ ក្បៀ */
+    '\xE1', '\x9E', '\x93', '\xE1', '\x9F', '\x92', '\xE1', '\x9E', '\x8F', '\xE1', '\x9F', '\x92', '\xE1', '\x9E', '\x9A', '\xE1', '\x9F', '\x83', ' ', '\xE1', '\x9E', '\x84', '\xE1', '\x9F', '\x92', '\xE1', '\x9E', '\x81', '\xE1', '\x9F', '\x92', '\xE1', '\x9E', '\x99', ' ', '\xE1', '\x9E', '\x80', '\xE1', '\x9F', '\x92', '\xE1', '\x9E', '\x94', '\xE1', '\x9F', '\x80', ' ', '\xE1', '\x9E', '\x85', '\xE1', '\x9F', '\x92', '\xE1', '\x9E', '\x9A', '\xE1', '\x9F', '\x80', ' ', '\xE1', '\x9E', '\x93', '\xE1', '\x9F', '\x92', '\xE1', '\x9E', '\x8F', '\xE1', '\x9E', '\xBF', ' ', '\xE1', '\x9E', '\x9B', '\xE1', '\x9F', '\x92', '\xE1', '\x9E', '\x94', '\xE1', '\x9E', '\xBF',  /* ន្ត្រៃ ង្ខ្យ ក្បៀ ច្រៀ ន្តឿ ល្បឿ */
     '\0',
     '\xE1', '\xA7', '\xA0', ' ', '\xE1', '\xA7', '\xA1',  /* ᧠ ᧡ */
     '\0',
--- a/src/autofit/afblue.dat
+++ b/src/autofit/afblue.dat
@@ -130,9 +130,9 @@
   AF_BLUE_STRING_KHMER_BOTTOM
     "ខ ឃ ច ឋ ប ម យ ឲ"
   AF_BLUE_STRING_KHMER_DESCENDER
-    "ត្រ រៀ ឲ្យ"
+    "ត្រ រៀ ឲ្យ អឿ"
   AF_BLUE_STRING_KHMER_LARGE_DESCENDER
-    "ង្ខ្យ ក្បៀ"
+    "ន្ត្រៃ ង្ខ្យ ក្បៀ ច្រៀ ន្តឿ ល្បឿ"
 
   AF_BLUE_STRING_KHMER_SYMBOLS_WAXING_TOP
     "᧠ ᧡"
--- a/src/autofit/afblue.h
+++ b/src/autofit/afblue.h
@@ -99,39 +99,39 @@
     AF_BLUE_STRING_KHMER_TOP = 383,
     AF_BLUE_STRING_KHMER_BOTTOM = 407,
     AF_BLUE_STRING_KHMER_DESCENDER = 439,
-    AF_BLUE_STRING_KHMER_LARGE_DESCENDER = 466,
-    AF_BLUE_STRING_KHMER_SYMBOLS_WAXING_TOP = 495,
-    AF_BLUE_STRING_KHMER_SYMBOLS_WANING_BOTTOM = 503,
-    AF_BLUE_STRING_LAO_TOP = 511,
-    AF_BLUE_STRING_LAO_BOTTOM = 543,
-    AF_BLUE_STRING_LAO_ASCENDER = 575,
-    AF_BLUE_STRING_LAO_LARGE_ASCENDER = 591,
-    AF_BLUE_STRING_LAO_DESCENDER = 603,
-    AF_BLUE_STRING_LATIN_CAPITAL_TOP = 627,
-    AF_BLUE_STRING_LATIN_CAPITAL_BOTTOM = 643,
-    AF_BLUE_STRING_LATIN_SMALL_F_TOP = 659,
-    AF_BLUE_STRING_LATIN_SMALL = 673,
-    AF_BLUE_STRING_LATIN_SMALL_DESCENDER = 687,
-    AF_BLUE_STRING_LATIN_SUBS_CAPITAL_TOP = 697,
-    AF_BLUE_STRING_LATIN_SUBS_CAPITAL_BOTTOM = 717,
-    AF_BLUE_STRING_LATIN_SUBS_SMALL_F_TOP = 737,
-    AF_BLUE_STRING_LATIN_SUBS_SMALL = 757,
-    AF_BLUE_STRING_LATIN_SUBS_SMALL_DESCENDER = 793,
-    AF_BLUE_STRING_LATIN_SUPS_CAPITAL_TOP = 813,
-    AF_BLUE_STRING_LATIN_SUPS_CAPITAL_BOTTOM = 844,
-    AF_BLUE_STRING_LATIN_SUPS_SMALL_F_TOP = 873,
-    AF_BLUE_STRING_LATIN_SUPS_SMALL = 899,
-    AF_BLUE_STRING_LATIN_SUPS_SMALL_DESCENDER = 924,
-    AF_BLUE_STRING_TELUGU_TOP = 935,
-    AF_BLUE_STRING_TELUGU_BOTTOM = 963,
-    AF_BLUE_STRING_THAI_TOP = 991,
-    AF_BLUE_STRING_THAI_BOTTOM = 1015,
-    AF_BLUE_STRING_THAI_ASCENDER = 1043,
-    AF_BLUE_STRING_THAI_LARGE_ASCENDER = 1055,
-    AF_BLUE_STRING_THAI_DESCENDER = 1067,
-    AF_BLUE_STRING_THAI_LARGE_DESCENDER = 1083,
-    AF_BLUE_STRING_THAI_DIGIT_TOP = 1091,
-    af_blue_1_1 = 1102,
+    AF_BLUE_STRING_KHMER_LARGE_DESCENDER = 473,
+    AF_BLUE_STRING_KHMER_SYMBOLS_WAXING_TOP = 560,
+    AF_BLUE_STRING_KHMER_SYMBOLS_WANING_BOTTOM = 568,
+    AF_BLUE_STRING_LAO_TOP = 576,
+    AF_BLUE_STRING_LAO_BOTTOM = 608,
+    AF_BLUE_STRING_LAO_ASCENDER = 640,
+    AF_BLUE_STRING_LAO_LARGE_ASCENDER = 656,
+    AF_BLUE_STRING_LAO_DESCENDER = 668,
+    AF_BLUE_STRING_LATIN_CAPITAL_TOP = 692,
+    AF_BLUE_STRING_LATIN_CAPITAL_BOTTOM = 708,
+    AF_BLUE_STRING_LATIN_SMALL_F_TOP = 724,
+    AF_BLUE_STRING_LATIN_SMALL = 738,
+    AF_BLUE_STRING_LATIN_SMALL_DESCENDER = 752,
+    AF_BLUE_STRING_LATIN_SUBS_CAPITAL_TOP = 762,
+    AF_BLUE_STRING_LATIN_SUBS_CAPITAL_BOTTOM = 782,
+    AF_BLUE_STRING_LATIN_SUBS_SMALL_F_TOP = 802,
+    AF_BLUE_STRING_LATIN_SUBS_SMALL = 822,
+    AF_BLUE_STRING_LATIN_SUBS_SMALL_DESCENDER = 858,
+    AF_BLUE_STRING_LATIN_SUPS_CAPITAL_TOP = 878,
+    AF_BLUE_STRING_LATIN_SUPS_CAPITAL_BOTTOM = 909,
+    AF_BLUE_STRING_LATIN_SUPS_SMALL_F_TOP = 938,
+    AF_BLUE_STRING_LATIN_SUPS_SMALL = 964,
+    AF_BLUE_STRING_LATIN_SUPS_SMALL_DESCENDER = 989,
+    AF_BLUE_STRING_TELUGU_TOP = 1000,
+    AF_BLUE_STRING_TELUGU_BOTTOM = 1028,
+    AF_BLUE_STRING_THAI_TOP = 1056,
+    AF_BLUE_STRING_THAI_BOTTOM = 1080,
+    AF_BLUE_STRING_THAI_ASCENDER = 1108,
+    AF_BLUE_STRING_THAI_LARGE_ASCENDER = 1120,
+    AF_BLUE_STRING_THAI_DESCENDER = 1132,
+    AF_BLUE_STRING_THAI_LARGE_DESCENDER = 1148,
+    AF_BLUE_STRING_THAI_DIGIT_TOP = 1156,
+    af_blue_1_1 = 1167,
 #ifdef AF_CONFIG_OPTION_CJK
     AF_BLUE_STRING_CJK_TOP = af_blue_1_1 + 1,
     AF_BLUE_STRING_CJK_BOTTOM = af_blue_1_1 + 203,