mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +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
1 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue