LanguageUtil.inc
上传用户:caisangzi8
上传日期:2013-10-25
资源大小:15756k
文件大小:4k
源码类别:

DVD

开发平台:

C/C++

  1. typedef struct 
  2. {
  3.     const FontInfo*     pFontInfo;
  4.     const BYTE*         pFontData;
  5.     UINT8               uiCompressed;
  6. } FontEntryType;
  7. // **************************************************************************************** //
  8. static const FontEntryType g_aFontEntryTable[] =
  9. {
  10. #ifdef USE_BIG5_FONT
  11.     { &g_Big5FontInfo,          JMT_BIG5_12X12_FONT_BITMAP,             FALSE },
  12. #endif
  13. #ifdef USE_BIG5_FONT_COMPRESSED
  14.     { &g_Big5FontInfo,          font_BIG5_compressed,                   TRUE },
  15. #endif
  16. #ifdef USE_BIG5_FONT_FROM_EXTERNAL
  17.     { &g_Big5FontInfo,          (BYTE*)FONT_DATA_YA,                    FALSE },
  18. #endif
  19. // **************************************************************************************** //
  20. #ifdef USE_BIG5_COMMON_FONT
  21.     { &g_Big5CommonFontInfo,    JMT_BIG5_12X12_FONT_BITMAP_COMMON,      FALSE },
  22. #endif
  23. #ifdef USE_BIG5_COMMON_FONT_COMPRESSED
  24.     { &g_Big5CommonFontInfo,    font_BIG5_common_compressed,            TRUE },
  25. #endif
  26. #ifdef USE_BIG5_COMMON_FONT_FROM_EXTERNAL
  27.     { &g_Big5CommonFontInfo,    (BYTE*)FONT_DATA_YA,                    FALSE },
  28. #endif
  29. // **************************************************************************************** //
  30. #ifdef USE_GB2312_FONT
  31.     { &g_GBFontInfo,            GUO_GB2312_12X12_FONT_BITMAP,           FALSE },
  32. #endif
  33. #ifdef USE_GB2312_FONT_COMPRESSED
  34.     { &g_GBFontInfo,            font_GB2312_compressed,                 TRUE },
  35. #endif
  36. #ifdef USE_GB2312_FONT_FROM_EXTERNAL
  37.     { &g_GBFontInfo,            (BYTE*)FONT_DATA_YA,                    FALSE },
  38. #endif
  39. // **************************************************************************************** //
  40. #ifdef USE_JAPANESE_FONT
  41.     { &g_JISFontInfo,           JP_JISX0213_12X12_FONT_BITMAP,          FALSE },
  42. #endif
  43. #ifdef USE_JAPANESE_FONT_COMPRESSED
  44.     { &g_JISFontInfo,           font_JIS_compressed,                    TRUE },
  45. #endif
  46. #ifdef USE_JAPANESE_FONT_FROM_EXTERNAL
  47.     { &g_JISFontInfo,           (BYTE*)FONT_DATA_YA,                    FALSE },
  48. #endif
  49. // **************************************************************************************** //
  50. #ifdef USE_KOREAN_FONT
  51.     { &g_KSCFontInfo,           KO_KSC_12X12_FONT_BITMAP,               FALSE },
  52. #endif
  53. #ifdef USE_KOREAN_FONT_COMPRESSED
  54.     { &g_KSCFontInfo,           font_KSC_compressed,                    TRUE },
  55. #endif
  56. #ifdef USE_KOREAN_FONT_FROM_EXTERNAL
  57.     { &g_KSCFontInfo,           (BYTE*)FONT_DATA_YA,                    FALSE },
  58. #endif
  59. // **************************************************************************************** //
  60. #ifdef USE_RUSSIAN_LANGUAGE
  61.     { &g_RussianFontInfo,       GUO_GB2312_Russian_12X12_FONT_BITMAP,   FALSE },
  62. #endif
  63. #ifdef USE_RUSSIAN_LANGUAGE_COMPRESSED
  64.     { &g_RussianFontInfo,       font_Russian_compressed,                TRUE },
  65. #endif
  66. #ifdef USE_RUSSIAN_LANGUAGE_FROM_EXTERNAL
  67.     { &g_RussianFontInfo,       (BYTE*)FONT_DATA_YA,                    FALSE },
  68. #endif
  69. // **************************************************************************************** //
  70. #ifdef EUROPE_FOREIGN_LANGUAGES
  71.     { &g_8859_1FontInfo,        ISO_8859_1_12X24_FONT_BITMAP,           FALSE },
  72. #endif
  73. #ifdef EUROPE_FOREIGN_LANGUAGES_COMPRESSED
  74.     { &g_8859_1FontInfo,        font_ISO_8859_1_compressed,             TRUE },
  75. #endif
  76. #ifdef EUROPE_FOREIGN_LANGUAGES_FROM_EXTERNAL
  77.     { &g_8859_1FontInfo,        (BYTE*)FONT_DATA_YA,                    FALSE },
  78. #endif
  79. // **************************************************************************************** //
  80. #ifdef MIDDLE_EUROPE_LANGUAGES
  81.     { &g_8859_2FontInfo,        ISO_8859_2_12X24_FONT_BITMAP,           FALSE },
  82. #endif
  83. #ifdef MIDDLE_EUROPE_LANGUAGES_COMPRESSED
  84.     { &g_8859_2FontInfo,        font_ISO_8859_2_compressed,             TRUE },
  85. #endif
  86. #ifdef MIDDLE_EUROPE_LANGUAGES_FROM_EXTERNAL
  87.     { &g_8859_2FontInfo,        (BYTE*)FONT_DATA_YA,                    FALSE },
  88. #endif
  89. // **************************************************************************************** //
  90. #ifdef SUPPORT_TURKISH_LANGUAGES
  91.     { &g_8859_9FontInfo,        ISO_8859_9_12X24_FONT_BITMAP,           FALSE },
  92. #endif
  93. #ifdef SUPPORT_TURKISH_LANGUAGES_COMPRESSED
  94.     { &g_8859_9FontInfo,        font_ISO_8859_9_compressed,             TRUE },
  95. #endif
  96. #ifdef SUPPORT_TURKISH_LANGUAGES_FROM_EXTERNAL
  97.     { &g_8859_9FontInfo,        (BYTE*)FONT_DATA_YA,                    FALSE },
  98. #endif
  99. };