| 51 | } |
| 52 | |
| 53 | void InitFontSys() { |
| 54 | LOGFONT lf; |
| 55 | lf.lfHeight = 0; |
| 56 | if (AppSettings::Get().Load(L"Software\\YuanOS\\WinArk")) { |
| 57 | lf = AppSettings::Get().Font(); |
| 58 | } |
| 59 | if (!lf.lfHeight) { |
| 60 | lf.lfHeight = -14; |
| 61 | lf.lfWidth = 0; |
| 62 | lf.lfEscapement = 0; |
| 63 | lf.lfOrientation = 0; |
| 64 | lf.lfWeight = FW_NORMAL; |
| 65 | lf.lfItalic = 0; |
| 66 | lf.lfUnderline = 0; |
| 67 | lf.lfStrikeOut = 0; |
| 68 | lf.lfCharSet = GB2312_CHARSET; |
| 69 | lf.lfOutPrecision = OUT_STROKE_PRECIS; |
| 70 | lf.lfClipPrecision = CLIP_STROKE_PRECIS; |
| 71 | lf.lfQuality = DRAFT_QUALITY; |
| 72 | lf.lfPitchAndFamily = FF_SWISS | VARIABLE_PITCH; |
| 73 | wcscpy_s(lf.lfFaceName, L"���ź�"); |
| 74 | } |
| 75 | g_hAppFont = CreateFontIndirect(&lf); |
| 76 | } |
| 77 | |
| 78 | void InitPenSys() { |
| 79 | g_hBlackPen = static_cast<HPEN>(GetStockObject(BLACK_PEN)); |