Script tags (OpenType 1.4)
Script tags identify the scripts represented in a OpenType Layout font. Script tags are defined by Microsoft Typography and correspond to the contiguous character code ranges in Unicode.
All tags are 4-byte character strings composed of a limited set of ASCII characters in the 0x20-0x7E range. A script tag can consist of four or fewer lowercase letters. If a script tag consists less than four lowercase letters, the letters are followed by the requisite number of spaces (0x20), each consisting of a single byte.
Some of most commonly used script tags are shown below. A full list of script tags is available from Microsoft.
Script | Script Tag |
---|---|
Arabic | arab |
Armenian | armn |
Bengali | beng |
Bopomofo | bopo |
Braille | brai |
Byzantine Music | byzm |
Canadian Syllabics | cans |
Cherokee | cher |
CJK Ideographic | hani |
Cyrillic | cyrl |
Default | DFLT |
Devanagari | deva |
Ethiopic | ethi |
Georgian | geor |
Greek | grek |
Gujarati | gujr |
Gurmukhi | guru |
Hangul Jamo | jamo |
Hangul | hang |
Hebrew | hebr |
Hiragana | kana |
Kannada | knda |
Katakana | kana |
Khmer | khmr |
Lao | lao |
Latin | latn |
Malayalam | mlym |
Mongolian | mong |
Myanmar | mymr |
Ogham | ogam |
Oriya | orya |
Runic | runr |
Sinhala | sinh |
Syriac | syrc |
Tamil | taml |
Telugu | telu |
Thaana | thaa |
Thai | thai |
Tibetan | tibt |
Yi | yi |
When the ScriptList table is searched for a script, and no entry is found, and there is an entry for the 'dflt' script, then this entry must be used. Furthermore, the Script table for the 'dflt' script must have a non-NULL DefaultLangSys and a LangSysCount equal to 0; in other words, there is only a default language for the default script.
OpenType specification