[HarfBuzz] How to use 'locl' feature of Noto Sans CJK with Harfbuzz?

Behdad Esfahbod behdad.esfahbod at gmail.com
Wed May 6 13:40:50 PDT 2015


On 15-05-06 08:08 AM, Richard Wordingham wrote:
> It should just be hb_buffer_set_language(buffer,
>                                          hb_tag_from_string(LANG));
> 
> where lang is one of the following four-character strings:
> 
> "JAN " for Japanese
> "KOR " for Korean
> "ZHH " for Hong Kong
> "ZHS " for Simplified Chinese
> "ZHT " for Traditional Chinese

This might work, but preferred way is:

"ja" for Japanese
"ko" for Korean
"zh-hk" for Hong Kong
"zh-hans" or "zh-cn" for Simplified Chinese
"zh-hant" or "zh-tw" for Traditional Chinese

b


More information about the HarfBuzz mailing list