1 #ifndef __FONT_CONTROL_H 2 #define __FONT_CONTROL_H 3 4 #include "Types.h" 5 6 7 extern SGPFont gp10PointArial; 8 extern SGPFont gp10PointArialBold; 9 extern SGPFont gp12PointArial; 10 extern SGPFont gp12PointArialFixedFont; 11 extern SGPFont gp12PointFont1; 12 extern SGPFont gp14PointArial; 13 extern SGPFont gp14PointHumanist; 14 extern SGPFont gp16PointArial; 15 extern SGPFont gpBlockFontNarrow; 16 extern SGPFont gpBlockyFont; 17 extern SGPFont gpBlockyFont2; 18 extern SGPFont gpLargeFontType1; 19 extern SGPFont gpSmallFontType1; 20 extern SGPFont gpTinyFontType1; 21 extern SGPFont gpCompFont; 22 extern SGPFont gpSmallCompFont; 23 24 extern SGPFont gpHugeFont; 25 26 27 // Defines 28 #define LARGEFONT1 gpLargeFontType1 29 #define SMALLFONT1 gpSmallFontType1 30 #define TINYFONT1 gpTinyFontType1 31 #define FONT12POINT1 gp12PointFont1 32 #define COMPFONT gpCompFont 33 #define SMALLCOMPFONT gpSmallCompFont 34 #define MILITARYFONT1 BLOCKFONT 35 #define FONT10ARIAL gp10PointArial 36 #define FONT14ARIAL gp14PointArial 37 #define FONT12ARIAL gp12PointArial 38 #define FONT10ARIALBOLD gp10PointArialBold 39 #define BLOCKFONT gpBlockyFont 40 #define BLOCKFONT2 gpBlockyFont2 41 #define FONT12ARIALFIXEDWIDTH gp12PointArialFixedFont 42 #define FONT16ARIAL gp16PointArial 43 #define BLOCKFONTNARROW gpBlockFontNarrow 44 #define FONT14HUMANIST gp14PointHumanist 45 46 #define HUGEFONT ((GameState::getInstance()->isEditorMode() && isEnglishVersion()) ? gpHugeFont : gp16PointArial) 47 48 #define FONT_MCOLOR_BLACK 0 49 #define FONT_MCOLOR_WHITE 208 50 #define FONT_MCOLOR_DKWHITE 134 51 #define FONT_MCOLOR_DKWHITE2 134 52 #define FONT_MCOLOR_LTGRAY 134 53 #define FONT_MCOLOR_LTGRAY2 134 54 #define FONT_MCOLOR_DKGRAY 136 55 #define FONT_MCOLOR_LTBLUE 203 56 #define FONT_MCOLOR_LTRED 162 57 #define FONT_MCOLOR_RED 163 58 #define FONT_MCOLOR_DKRED 164 59 #define FONT_MCOLOR_LTGREEN 184 60 #define FONT_MCOLOR_LTYELLOW 144 61 62 //Grayscale font colors 63 #define FONT_WHITE 208 //lightest color 64 #define FONT_GRAY1 133 65 #define FONT_GRAY2 134 //light gray 66 #define FONT_GRAY3 135 67 #define FONT_GRAY4 136 //gray 68 #define FONT_GRAY5 137 69 #define FONT_GRAY6 138 70 #define FONT_GRAY7 139 //dark gray 71 #define FONT_GRAY8 140 72 #define FONT_NEARBLACK 141 73 #define FONT_BLACK 0 //darkest color 74 //Color font colors 75 #define FONT_LTRED 162 76 #define FONT_RED 163 77 #define FONT_DKRED 218 78 #define FONT_ORANGE 76 79 #define FONT_YELLOW 145 80 #define FONT_DKYELLOW 80 81 #define FONT_LTGREEN 184 82 #define FONT_GREEN 185 83 #define FONT_DKGREEN 186 84 #define FONT_LTBLUE 71 85 #define FONT_BLUE 203 86 #define FONT_DKBLUE 205 87 88 #define FONT_BEIGE 130 89 #define FONT_METALGRAY 94 90 #define FONT_BURGUNDY 172 91 #define FONT_LTKHAKI 88 92 #define FONT_KHAKI 198 93 #define FONT_DKKHAKI 201 94 95 void InitializeFonts(void); 96 void ShutdownFonts(void); 97 98 enum FontShade 99 { 100 FONT_SHADE_GREY_165 = 0, 101 FONT_SHADE_BLUE = 1, 102 FONT_SHADE_GREEN = 2, 103 FONT_SHADE_YELLOW = 3, 104 FONT_SHADE_NEUTRAL = 4, 105 FONT_SHADE_WHITE = 5, 106 FONT_SHADE_RED = 6 107 }; 108 109 void SetFontShade(SGPFont, FontShade); 110 111 #endif 112