Author: tkreuzer
Date: Tue Apr 1 12:07:12 2008
New Revision: 32807
URL:
http://svn.reactos.org/svn/reactos?rev=32807&view=rev
Log:
- 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.
Modified:
trunk/reactos/subsystems/win32/win32k/objects/text.c
Modified: trunk/reactos/subsystems/win32/win32k/objects/text.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/text.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/text.c [iso-8859-1] Tue Apr 1 12:07:12
2008
@@ -993,9 +993,9 @@
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 @@
break;
case 2: /* Copy a LOGFONTW structure */
+ Info.EnumLogFontEx.elfLogFont.lfWidth = 0;
memcpy(pBuffer, &Info.EnumLogFontEx.elfLogFont, sizeof(LOGFONTW));
*pdwBytes = sizeof(LOGFONTW);
break;