The language keyword is used to include a feature into a specific language. All features not assigned to a specific language will be added to the default language. The language keyword can only be used inside a script block. Assigning a feature to a specific language:
script <scripttag> {
<features> # available in the default language
language <tag> {
<features> # only available in this language
}
}
Where:
•tag is one of the language tags defined in the Microsoft list of language tags (deprecated languages are not supported). A full list of supported languages can be found at http://www.microsoft.com/typography/otspec/languagetags.htm
Don’t forget to include features in the default language, as the default language will be used as fallback in case the language of text in a document isn’t available in the script. Windows always uses the default language, although that might change in the future.
Note: There are fonts that have unknown language tags like “TUR ” and “IPA ”, these are either deprecated or common mistakes. The following table lists several of these tags and their proper replacements:
Wrong tag |
Correct tag |
Description |
---|---|---|
DHV |
DIV |
Dhivehi |
IPA |
IPPH |
Phonetic transcription |
TUR |
TRK |
Turkish |
CHN |
ZHS or ZHH |
Chinese Simplified or Chinese, Hong Kong SAR |