Index: reactos/base/applications/notepad/settings.c =================================================================== --- reactos/base/applications/notepad/settings.c (revision 74287) +++ reactos/base/applications/notepad/settings.c (working copy) @@ -166,26 +166,25 @@ Globals.lfFont.lfHeight = HeightFromPointSize(100); RegCloseKey(hKey); + + hFont = CreateFontIndirect(&Globals.lfFont); } else { /* If no settings are found in the registry, then use default values */ - Globals.lfFont.lfCharSet = 163; - Globals.lfFont.lfClipPrecision = 2; - Globals.lfFont.lfEscapement = 0; - _tcscpy(Globals.lfFont.lfFaceName, _T("Lucida Console")); - Globals.lfFont.lfItalic = 0; - Globals.lfFont.lfOrientation = 0; - Globals.lfFont.lfOutPrecision = 3; - Globals.lfFont.lfPitchAndFamily = 34; - Globals.lfFont.lfQuality = 1; - Globals.lfFont.lfStrikeOut = 0; - Globals.lfFont.lfUnderline = 0; - Globals.lfFont.lfWeight = 400; - Globals.lfFont.lfHeight = HeightFromPointSize(100); + LOGFONTW lf; + + /* We do generic font selection */ + ZeroMemory(&lf, sizeof(lf)); + lf.lfCharSet = DEFAULT_CHARSET; + lf.lfHeight = HeightFromPointSize(120); + lf.lfPitchAndFamily = FIXED_PITCH | FF_MODERN; + hFont = CreateFontIndirect(&lf); + + /* get specific font info */ + GetObjectW(hFont, sizeof(Globals.lfFont), &Globals.lfFont); } - hFont = CreateFontIndirect(&Globals.lfFont); SendMessage(Globals.hEdit, WM_SETFONT, (WPARAM)hFont, (LPARAM)TRUE); if (hFont) {