mirror of
https://github.com/reactos/reactos.git
synced 2024-08-15 16:07:07 +00:00
- 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
This commit is contained in:
parent
d8af502747
commit
2c1cfd7207
|
@ -993,9 +993,9 @@ FontFamilyFillInfo(PFONTFAMILYINFO Info, PCWSTR FaceName, PFONTGDI FontGDI)
|
||||||
Lf->lfItalic = TM->tmItalic;
|
Lf->lfItalic = TM->tmItalic;
|
||||||
Lf->lfPitchAndFamily = (TM->tmPitchAndFamily & 0xf1) + 1;
|
Lf->lfPitchAndFamily = (TM->tmPitchAndFamily & 0xf1) + 1;
|
||||||
Lf->lfCharSet = TM->tmCharSet;
|
Lf->lfCharSet = TM->tmCharSet;
|
||||||
Lf->lfOutPrecision = OUT_STROKE_PRECIS;
|
Lf->lfOutPrecision = OUT_OUTLINE_PRECIS;
|
||||||
Lf->lfClipPrecision = CLIP_STROKE_PRECIS;
|
Lf->lfClipPrecision = CLIP_DEFAULT_PRECIS;
|
||||||
Lf->lfQuality = DRAFT_QUALITY;
|
Lf->lfQuality = PROOF_QUALITY;
|
||||||
|
|
||||||
Ntm = &Info->NewTextMetricEx.ntmTm;
|
Ntm = &Info->NewTextMetricEx.ntmTm;
|
||||||
Ntm->tmHeight = TM->tmHeight;
|
Ntm->tmHeight = TM->tmHeight;
|
||||||
|
@ -4322,6 +4322,7 @@ IntGdiGetFontResourceInfo(
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 2: /* Copy a LOGFONTW structure */
|
case 2: /* Copy a LOGFONTW structure */
|
||||||
|
Info.EnumLogFontEx.elfLogFont.lfWidth = 0;
|
||||||
memcpy(pBuffer, &Info.EnumLogFontEx.elfLogFont, sizeof(LOGFONTW));
|
memcpy(pBuffer, &Info.EnumLogFontEx.elfLogFont, sizeof(LOGFONTW));
|
||||||
*pdwBytes = sizeof(LOGFONTW);
|
*pdwBytes = sizeof(LOGFONTW);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue