| 210 | } |
| 211 | |
| 212 | void FontsInitialize() |
| 213 | { |
| 214 | for (int iFont = 0; iFont < NUM_FONTS; iFont++ ) |
| 215 | { |
| 216 | g_aFontConfig[ iFont ]._hFont = NULL; |
| 217 | #if USE_APPLE_FONT |
| 218 | g_aFontConfig[ iFont ]._nFontHeight = CONSOLE_FONT_HEIGHT; |
| 219 | g_aFontConfig[ iFont ]._nFontWidthAvg = CONSOLE_FONT_WIDTH; |
| 220 | g_aFontConfig[ iFont ]._nFontWidthMax = CONSOLE_FONT_WIDTH; |
| 221 | g_aFontConfig[ iFont ]._nLineHeight = CONSOLE_FONT_HEIGHT; |
| 222 | #endif |
| 223 | } |
| 224 | |
| 225 | #if OLD_FONT |
| 226 | _CmdConfigFont( FONT_INFO , g_sFontNameInfo , FIXED_PITCH | FF_MODERN , g_nFontHeight ); // DEFAULT_CHARSET |
| 227 | _CmdConfigFont( FONT_CONSOLE , g_sFontNameConsole, FIXED_PITCH | FF_MODERN , g_nFontHeight ); // DEFAULT_CHARSET |
| 228 | _CmdConfigFont( FONT_DISASM_DEFAULT, g_sFontNameDisasm , FIXED_PITCH | FF_MODERN , g_nFontHeight ); // OEM_CHARSET |
| 229 | _CmdConfigFont( FONT_DISASM_BRANCH , g_sFontNameBranch , DEFAULT_PITCH | FF_DECORATIVE, g_nFontHeight+3); // DEFAULT_CHARSET |
| 230 | #endif |
| 231 | _UpdateWindowFontHeights( g_aFontConfig[ FONT_DISASM_DEFAULT ]._nFontHeight ); |
| 232 | } |
| 233 | |
| 234 | void FontsDestroy() |
| 235 | { |
no test coverage detected