src/java.desktop/share/native/libfontmanager/harfbuzz/hb-ot-tag.cc
changeset 50826 f5b95be8b6e2
parent 50352 25db2c8f3cf8
child 54232 7c11a7cc7c1d
equal deleted inserted replaced
50825:aa0a35b071fb 50826:f5b95be8b6e2
   114   return HB_SCRIPT_UNKNOWN;
   114   return HB_SCRIPT_UNKNOWN;
   115 }
   115 }
   116 
   116 
   117 /*
   117 /*
   118  * Complete list at:
   118  * Complete list at:
   119  * https://www.microsoft.com/typography/otspec/scripttags.htm
   119  * https://docs.microsoft.com/en-us/typography/opentype/spec/scripttags
   120  * https://www.microsoft.com/typography/otspec160/scripttagsProposed.htm
       
   121  *
   120  *
   122  * Most of the script tags are the same as the ISO 15924 tag but lowercased.
   121  * Most of the script tags are the same as the ISO 15924 tag but lowercased.
   123  * So we just do that, and handle the exceptional cases in a switch.
   122  * So we just do that, and handle the exceptional cases in a switch.
   124  */
   123  */
   125 
   124 
   157   hb_tag_t tag;
   156   hb_tag_t tag;
   158 } LangTag;
   157 } LangTag;
   159 
   158 
   160 /*
   159 /*
   161  * Complete list at:
   160  * Complete list at:
   162  * http://www.microsoft.com/typography/otspec/languagetags.htm
   161  * https://docs.microsoft.com/en-us/typography/opentype/spec/languagetags
   163  *
   162  *
   164  * Generated by intersecting the OpenType language tag list from
   163  * Generated by intersecting the OpenType language tag list from
   165  * Draft OpenType 1.5 spec, with with the ISO 639-3 codes from
   164  * Draft OpenType 1.5 spec, with with the ISO 639-3 codes from
   166  * 2008-08-04, matching on name, and finally adjusted manually.
   165  * 2008-08-04, matching on name, and finally adjusted manually.
   167  *
   166  *
   174  * Keep sorted for bsearch.
   173  * Keep sorted for bsearch.
   175  *
   174  *
   176  * Updated as of 2015-05-06: OT1.7 on MS website has some newer
   175  * Updated as of 2015-05-06: OT1.7 on MS website has some newer
   177  * items that we don't have here, eg. Zazaki.  This is the new
   176  * items that we don't have here, eg. Zazaki.  This is the new
   178  * items in OpenType 1.7 (red items), most of which we have:
   177  * items in OpenType 1.7 (red items), most of which we have:
   179  * http://www.microsoft.com/typography/otspec170/languagetags.htm
   178  * https://docs.microsoft.com/en-us/typography/opentype/spec/languagetags
   180  */
   179  */
   181 
   180 
   182 static const LangTag ot_languages[] = {
   181 static const LangTag ot_languages[] = {
   183   {"aa",        HB_TAG('A','F','R',' ')},       /* Afar */
   182   {"aa",        HB_TAG('A','F','R',' ')},       /* Afar */
   184   {"ab",        HB_TAG('A','B','K',' ')},       /* Abkhazian */
   183   {"ab",        HB_TAG('A','B','K',' ')},       /* Abkhazian */