MCPcopy Create free account
hub / github.com/AppleWin/AppleWin / FontsInitialize

Function FontsInitialize

source/Debugger/Debugger_Win32.cpp:212–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210}
211
212void 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
234void FontsDestroy()
235{

Callers 1

DebugInitializeFunction · 0.85

Calls 2

_CmdConfigFontFunction · 0.85
_UpdateWindowFontHeightsFunction · 0.85

Tested by

no test coverage detected