src/hb-ot-tag.cc |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 10a0d4aa2254f783758bb908175047df3a0b41fe
Author: Behdad Esfahbod <beh...@behdad.org>
Date:   Mon Aug 8 16:51:08 2016 -0700

    Map zh-Hant-HK to ZHH
    
    Fixes https://github.com/behdad/harfbuzz/issues/300

diff --git a/src/hb-ot-tag.cc b/src/hb-ot-tag.cc
index 0483557..fdebb05 100644
--- a/src/hb-ot-tag.cc
+++ b/src/hb-ot-tag.cc
@@ -826,16 +826,18 @@ static const LangTag ot_languages[] = {
 };
 
 typedef struct {
-  char language[8];
+  char language[11];
   hb_tag_t tag;
 } LangTagLong;
 static const LangTagLong ot_languages_zh[] = {
+  /* Store longest-first, if one is a prefix of another. */
   {"zh-cn",    HB_TAG('Z','H','S',' ')},       /* Chinese (China) */
   {"zh-hk",    HB_TAG('Z','H','H',' ')},       /* Chinese (Hong Kong) */
   {"zh-mo",    HB_TAG('Z','H','T',' ')},       /* Chinese (Macao) */
   {"zh-sg",    HB_TAG('Z','H','S',' ')},       /* Chinese (Singapore) */
   {"zh-tw",    HB_TAG('Z','H','T',' ')},       /* Chinese (Taiwan) */
   {"zh-hans",  HB_TAG('Z','H','S',' ')},       /* Chinese (Simplified) */
+  {"zh-hant-hk",HB_TAG('Z','H','H',' ')},      /* Chinese (Hong Kong) */
   {"zh-hant",  HB_TAG('Z','H','T',' ')},       /* Chinese (Traditional) */
 };
 
_______________________________________________
HarfBuzz mailing list
HarfBuzz@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/harfbuzz

Reply via email to