CharSet

CharSet

The CharSet represents the output language used by the system, and it is one of the most significant attributes of the font. The Open32 NLS Extension accepts and generates the Windows CharSet ids, by mapping them with the set of glyphs in the OS/2 fonts, and some other information stored in the font metrics.

The Open32 NLS Extension APIs accept the Windows CharSet ids listed below.

┌────────────────────┬──────────────────────────────┬────────────────────┐
│Windows CharSet     │Meaning                       │Corresponding       │
│                    │                              │Windows Codepage    │
├────────────────────┼──────────────────────────────┼────────────────────┤
│EASTEUROPE_CHARSET  │Windows Latin2: Eastern Europe│1250                │
├────────────────────┼──────────────────────────────┼────────────────────┤
│RUSSIAN_CHARSET     │Cyrillic                      │1251                │
├────────────────────┼──────────────────────────────┼────────────────────┤
│ANSI_CHARSET        │Windows Latin 1: US, Western  │1252                │
│                    │Europe                        │                    │
├────────────────────┼──────────────────────────────┼────────────────────┤
│GREEK_CHARSET       │Greek                         │1253                │
├────────────────────┼──────────────────────────────┼────────────────────┤
│TURKISH_CHARSET     │Turkish                       │1254                │
├────────────────────┼──────────────────────────────┼────────────────────┤
│HEBREW_CHARSET      │Hebrew                        │1255                │
├────────────────────┼──────────────────────────────┼────────────────────┤
│ARABIC_CHARSET      │Arabic                        │1256                │
├────────────────────┼──────────────────────────────┼────────────────────┤
│BALTIC_CHARSET      │Baltic                        │1257                │
├────────────────────┼──────────────────────────────┼────────────────────┤
│THAI_CHARSET        │Thai                          │874                 │
├────────────────────┼──────────────────────────────┼────────────────────┤
│DEFAULT_CHARSET     │(character set "don't care"   │N/A                 │
│                    │value)                        │                    │
├────────────────────┼──────────────────────────────┼────────────────────┤
│SYMBOL_CHARSET      │Symbol Set                    │N/A                 │
├────────────────────┼──────────────────────────────┼────────────────────┤
│SHIFTJIS_CHARSET    │Japanese Shift-JIS            │932                 │
├────────────────────┼──────────────────────────────┼────────────────────┤
│HANGEUL_CHARSET     │Korean Wansung (KS            │949                 │
│                    │C-5601-1987)                  │                    │
├────────────────────┼──────────────────────────────┼────────────────────┤
│JOHAB_CHARSET       │Korean Johab (KS C-5601-1992) │1361                │
├────────────────────┼──────────────────────────────┼────────────────────┤
│GB2312_CHARSET      │Simplified Chinese (GB        │936                 │
│                    │2312-80)                      │                    │
├────────────────────┼──────────────────────────────┼────────────────────┤
│CHINESEBIG5_CHARSET │Traditional Chinese (BIG-5)   │950                 │
├────────────────────┼──────────────────────────────┼────────────────────┤
│OEM_CHARSET         │(Platform/Device Dependent)   │N/A                 │
└────────────────────┴──────────────────────────────┴────────────────────┘


[Back: The Metrics Mapping]
[Next: Assigning Windows CharSet id to OS/2 Fonts]