Index: reactos/base/applications/notepad/settings.c =================================================================== --- reactos/base/applications/notepad/settings.c (revision 75016) +++ reactos/base/applications/notepad/settings.c (working copy) @@ -169,20 +169,13 @@ } 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; + /* If no settings are found in the registry, then use generic font selection */ + ZeroMemory(&Globals.lfFont, sizeof(Globals.lfFont)); + Globals.lfFont.lfHeight = HeightFromPointSize(100); + Globals.lfFont.lfWeight = FW_NORMAL; + Globals.lfFont.lfCharSet = DEFAULT_CHARSET; + Globals.lfFont.lfPitchAndFamily = FIXED_PITCH | FF_MODERN; _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); } hFont = CreateFontIndirect(&Globals.lfFont); @@ -192,6 +185,8 @@ if (Globals.hFont) DeleteObject(Globals.hFont); Globals.hFont = hFont; + + GetObject(hFont, sizeof(LOGFONT), &Globals.lfFont); } }