]> git.saurik.com Git - wxWidgets.git/blame - include/wx/fontenc.h
Somehow, setting a tint color makes gauge work :/.
[wxWidgets.git] / include / wx / fontenc.h
CommitLineData
f6bcfd97
BP
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/fontenc.h
3// Purpose: wxFontEncoding constants
4// Author: Vadim Zeitlin
5// Modified by:
6// Created: 29.03.00
f6bcfd97 7// Copyright: (c) Vadim Zeitlin
65571936 8// Licence: wxWindows licence
f6bcfd97
BP
9/////////////////////////////////////////////////////////////////////////////
10
11#ifndef _WX_FONTENC_H_
12#define _WX_FONTENC_H_
13
14// font encodings
15enum wxFontEncoding
16{
17 wxFONTENCODING_SYSTEM = -1, // system default
18 wxFONTENCODING_DEFAULT, // current default encoding
19
20 // ISO8859 standard defines a number of single-byte charsets
21 wxFONTENCODING_ISO8859_1, // West European (Latin1)
22 wxFONTENCODING_ISO8859_2, // Central and East European (Latin2)
23 wxFONTENCODING_ISO8859_3, // Esperanto (Latin3)
24 wxFONTENCODING_ISO8859_4, // Baltic (old) (Latin4)
25 wxFONTENCODING_ISO8859_5, // Cyrillic
26 wxFONTENCODING_ISO8859_6, // Arabic
27 wxFONTENCODING_ISO8859_7, // Greek
28 wxFONTENCODING_ISO8859_8, // Hebrew
29 wxFONTENCODING_ISO8859_9, // Turkish (Latin5)
30 wxFONTENCODING_ISO8859_10, // Variation of Latin4 (Latin6)
31 wxFONTENCODING_ISO8859_11, // Thai
32 wxFONTENCODING_ISO8859_12, // doesn't exist currently, but put it
33 // here anyhow to make all ISO8859
34 // consecutive numbers
35 wxFONTENCODING_ISO8859_13, // Baltic (Latin7)
36 wxFONTENCODING_ISO8859_14, // Latin8
37 wxFONTENCODING_ISO8859_15, // Latin9 (a.k.a. Latin0, includes euro)
38 wxFONTENCODING_ISO8859_MAX,
39
40 // Cyrillic charset soup (see http://czyborra.com/charsets/cyrillic.html)
15ad38c3
VZ
41 wxFONTENCODING_KOI8, // KOI8 Russian
42 wxFONTENCODING_KOI8_U, // KOI8 Ukrainian
f6bcfd97
BP
43 wxFONTENCODING_ALTERNATIVE, // same as MS-DOS CP866
44 wxFONTENCODING_BULGARIAN, // used under Linux in Bulgaria
45
46 // what would we do without Microsoft? They have their own encodings
47 // for DOS
48 wxFONTENCODING_CP437, // original MS-DOS codepage
49 wxFONTENCODING_CP850, // CP437 merged with Latin1
50 wxFONTENCODING_CP852, // CP437 merged with Latin2
51 wxFONTENCODING_CP855, // another cyrillic encoding
52 wxFONTENCODING_CP866, // and another one
53 // and for Windows
54 wxFONTENCODING_CP874, // WinThai
bc4e6fcd 55 wxFONTENCODING_CP932, // Japanese (shift-JIS)
62b3ca69 56 wxFONTENCODING_CP936, // Chinese simplified (GB)
3d4e20dd 57 wxFONTENCODING_CP949, // Korean (Hangul charset, a.k.a. EUC-KR)
bc4e6fcd 58 wxFONTENCODING_CP950, // Chinese (traditional - Big5)
f6bcfd97
BP
59 wxFONTENCODING_CP1250, // WinLatin2
60 wxFONTENCODING_CP1251, // WinCyrillic
61 wxFONTENCODING_CP1252, // WinLatin1
62 wxFONTENCODING_CP1253, // WinGreek (8859-7)
63 wxFONTENCODING_CP1254, // WinTurkish
64 wxFONTENCODING_CP1255, // WinHebrew
65 wxFONTENCODING_CP1256, // WinArabic
66 wxFONTENCODING_CP1257, // WinBaltic (same as Latin 7)
2253f181
VZ
67 wxFONTENCODING_CP1258, // WinVietnamese
68 wxFONTENCODING_CP1361, // Johab Korean character set.
f6bcfd97 69 wxFONTENCODING_CP12_MAX,
bb84929e
VZ
70
71 wxFONTENCODING_UTF7, // UTF-7 Unicode encoding
72 wxFONTENCODING_UTF8, // UTF-8 Unicode encoding
d8cf2b8d 73 wxFONTENCODING_EUC_JP, // Extended Unix Codepage for Japanese
c91830cb
VZ
74 wxFONTENCODING_UTF16BE, // UTF-16 Big Endian Unicode encoding
75 wxFONTENCODING_UTF16LE, // UTF-16 Little Endian Unicode encoding
c91830cb
VZ
76 wxFONTENCODING_UTF32BE, // UTF-32 Big Endian Unicode encoding
77 wxFONTENCODING_UTF32LE, // UTF-32 Little Endian Unicode encoding
bb84929e 78
3f56b20e 79 wxFONTENCODING_MACROMAN, // the standard mac encodings
a62848fd
WS
80 wxFONTENCODING_MACJAPANESE,
81 wxFONTENCODING_MACCHINESETRAD,
82 wxFONTENCODING_MACKOREAN,
83 wxFONTENCODING_MACARABIC,
84 wxFONTENCODING_MACHEBREW,
85 wxFONTENCODING_MACGREEK,
86 wxFONTENCODING_MACCYRILLIC,
87 wxFONTENCODING_MACDEVANAGARI,
88 wxFONTENCODING_MACGURMUKHI,
89 wxFONTENCODING_MACGUJARATI,
90 wxFONTENCODING_MACORIYA,
91 wxFONTENCODING_MACBENGALI,
92 wxFONTENCODING_MACTAMIL,
93 wxFONTENCODING_MACTELUGU,
94 wxFONTENCODING_MACKANNADA,
95 wxFONTENCODING_MACMALAJALAM,
96 wxFONTENCODING_MACSINHALESE,
97 wxFONTENCODING_MACBURMESE,
98 wxFONTENCODING_MACKHMER,
99 wxFONTENCODING_MACTHAI,
100 wxFONTENCODING_MACLAOTIAN,
101 wxFONTENCODING_MACGEORGIAN,
102 wxFONTENCODING_MACARMENIAN,
103 wxFONTENCODING_MACCHINESESIMP,
104 wxFONTENCODING_MACTIBETAN,
105 wxFONTENCODING_MACMONGOLIAN,
106 wxFONTENCODING_MACETHIOPIC,
107 wxFONTENCODING_MACCENTRALEUR,
108 wxFONTENCODING_MACVIATNAMESE,
109 wxFONTENCODING_MACARABICEXT,
110 wxFONTENCODING_MACSYMBOL,
111 wxFONTENCODING_MACDINGBATS,
112 wxFONTENCODING_MACTURKISH,
113 wxFONTENCODING_MACCROATIAN,
114 wxFONTENCODING_MACICELANDIC,
115 wxFONTENCODING_MACROMANIAN,
116 wxFONTENCODING_MACCELTIC,
117 wxFONTENCODING_MACGAELIC,
118 wxFONTENCODING_MACKEYBOARD,
788a28b4 119
a220ccb3
VZ
120 // more CJK encodings (for historical reasons some are already declared
121 // above)
122 wxFONTENCODING_ISO2022_JP, // ISO-2022-JP JIS encoding
123
d8cf2b8d
VZ
124 wxFONTENCODING_MAX, // highest enumerated encoding value
125
3f56b20e
SC
126 wxFONTENCODING_MACMIN = wxFONTENCODING_MACROMAN ,
127 wxFONTENCODING_MACMAX = wxFONTENCODING_MACKEYBOARD ,
a62848fd 128
d8cf2b8d
VZ
129 // aliases for endian-dependent UTF encodings
130#ifdef WORDS_BIGENDIAN
131 wxFONTENCODING_UTF16 = wxFONTENCODING_UTF16BE, // native UTF-16
132 wxFONTENCODING_UTF32 = wxFONTENCODING_UTF32BE, // native UTF-32
133#else // WORDS_BIGENDIAN
134 wxFONTENCODING_UTF16 = wxFONTENCODING_UTF16LE, // native UTF-16
135 wxFONTENCODING_UTF32 = wxFONTENCODING_UTF32LE, // native UTF-32
136#endif // WORDS_BIGENDIAN
137
051a889d
VZ
138 // alias for the native Unicode encoding on this platform
139 // (this is used by wxEncodingConverter and wxUTFFile only for now)
140#if SIZEOF_WCHAR_T == 2
141 wxFONTENCODING_UNICODE = wxFONTENCODING_UTF16,
142#else // SIZEOF_WCHAR_T == 4
143 wxFONTENCODING_UNICODE = wxFONTENCODING_UTF32,
144#endif
d8cf2b8d
VZ
145
146 // alternative names for Far Eastern encodings
2b5f62a0
VZ
147 // Chinese
148 wxFONTENCODING_GB2312 = wxFONTENCODING_CP936, // Simplified Chinese
149 wxFONTENCODING_BIG5 = wxFONTENCODING_CP950, // Traditional Chinese
150
151 // Japanese (see http://zsigri.tripod.com/fontboard/cjk/jis.html)
3d4e20dd
VZ
152 wxFONTENCODING_SHIFT_JIS = wxFONTENCODING_CP932, // Shift JIS
153
154 // Korean (CP 949 not actually the same but close enough)
2253f181
VZ
155 wxFONTENCODING_EUC_KR = wxFONTENCODING_CP949,
156 wxFONTENCODING_JOHAB = wxFONTENCODING_CP1361,
157
158 // Vietnamese
159 wxFONTENCODING_VIETNAMESE = wxFONTENCODING_CP1258
f6bcfd97
BP
160};
161
162#endif // _WX_FONTENC_H_
48f9e810 163