mirror of
https://github.com/reactos/reactos.git
synced 2024-06-29 01:12:06 +00:00
[WIN32SS][FONT] Fix ntmCellHeight value to usWinAscent + usWinDescent (#1010)
CORE-15331
This commit is contained in:
parent
751674c98e
commit
7f679a116b
|
@ -2583,10 +2583,6 @@ FontFamilyFillInfo(PFONTFAMILYINFO Info, LPCWSTR FaceName,
|
|||
|
||||
if (0 == Ntm->ntmFlags) Ntm->ntmFlags = NTM_REGULAR;
|
||||
|
||||
Ntm->ntmSizeEM = Otm->otmEMSquare;
|
||||
Ntm->ntmCellHeight = Otm->otmEMSquare;
|
||||
Ntm->ntmAvgWidth = 0;
|
||||
|
||||
Info->FontType = (0 != (TM->tmPitchAndFamily & TMPF_TRUETYPE)
|
||||
? TRUETYPE_FONTTYPE : 0);
|
||||
|
||||
|
@ -2629,6 +2625,10 @@ FontFamilyFillInfo(PFONTFAMILYINFO Info, LPCWSTR FaceName,
|
|||
return;
|
||||
}
|
||||
|
||||
Ntm->ntmSizeEM = Otm->otmEMSquare;
|
||||
Ntm->ntmCellHeight = pOS2->usWinAscent + pOS2->usWinDescent;
|
||||
Ntm->ntmAvgWidth = 0;
|
||||
|
||||
fs.fsCsb[0] = pOS2->ulCodePageRange1;
|
||||
fs.fsCsb[1] = pOS2->ulCodePageRange2;
|
||||
fs.fsUsb[0] = pOS2->ulUnicodeRange1;
|
||||
|
|
Loading…
Reference in a new issue