fontenc.h 6.6 KB

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