From 2c1cfd7207295857cb73f42e76050df8fead8f6a Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Tue, 1 Apr 2008 17:07:12 +0000 Subject: [PATCH] - make some text metric settings compatible to windows xp. - zero out lfWidth member when returning logfont in IntGdiGetFontResourceInfo. Fixes recently introduced bug in fontview display, also fixes ms fontview. svn path=/trunk/; revision=32807 --- reactos/subsystems/win32/win32k/objects/text.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/reactos/subsystems/win32/win32k/objects/text.c b/reactos/subsystems/win32/win32k/objects/text.c index bc955cb99c9..668e2f89e3c 100644 --- a/reactos/subsystems/win32/win32k/objects/text.c +++ b/reactos/subsystems/win32/win32k/objects/text.c @@ -993,9 +993,9 @@ FontFamilyFillInfo(PFONTFAMILYINFO Info, PCWSTR FaceName, PFONTGDI FontGDI) Lf->lfItalic = TM->tmItalic; Lf->lfPitchAndFamily = (TM->tmPitchAndFamily & 0xf1) + 1; Lf->lfCharSet = TM->tmCharSet; - Lf->lfOutPrecision = OUT_STROKE_PRECIS; - Lf->lfClipPrecision = CLIP_STROKE_PRECIS; - Lf->lfQuality = DRAFT_QUALITY; + Lf->lfOutPrecision = OUT_OUTLINE_PRECIS; + Lf->lfClipPrecision = CLIP_DEFAULT_PRECIS; + Lf->lfQuality = PROOF_QUALITY; Ntm = &Info->NewTextMetricEx.ntmTm; Ntm->tmHeight = TM->tmHeight; @@ -4322,6 +4322,7 @@ IntGdiGetFontResourceInfo( break; case 2: /* Copy a LOGFONTW structure */ + Info.EnumLogFontEx.elfLogFont.lfWidth = 0; memcpy(pBuffer, &Info.EnumLogFontEx.elfLogFont, sizeof(LOGFONTW)); *pdwBytes = sizeof(LOGFONTW); break;