3 ms·
Fortunately, OpenType fonts can have locale-specific behavior, so as long as your content is appropriately lang-tagged, that shouldn't be a problem. (Though I
by jfk13 7y ago
Fortunately, OpenType fonts can have locale-specific behavior, so as long as your content is appropriately lang-tagged, that shouldn't be a problem.
(Though I still don't think doing this in the font is a good idea, in general.)
- Someone 7y agoSo, one could have a font that, say, hides the flag of Taiwan in a Chinese locale? (Yes, there are multiple ‘Chinese’ locales: zh-CN Chinese (Simplified, PRC) zh-SG Chinese (Simplified, Singapore) zh-TW Chinese (Traditional, Taiwan) zh-HK Chinese (Traditional, Hong Kong S.A.R.) zh-MO Chinese (Traditional, Macao S.A.R.) )
- yorwba 7y agoYes, but OpenType only supports 4 different Chinese locales (Chinese, Hong Kong SAR 'ZHH', Chinese Phonetic 'ZHP', Chinese Simplified 'ZHS', Chinese Traditional 'ZHT') https://docs.microsoft.com/en-us/typography/opentype/spec/languagetags https://docs.microsoft.com/en-us/typography/opentype/spec/la... ZHP seems like it's unlikely to be used in the wild.