Author: mjansen
Date: Fri Apr 7 22:30:20 2017
New Revision: 74282
URL:
http://svn.reactos.org/svn/reactos?rev=74282&view=rev
Log:
[WIN32SS] Use Panose info from freetype. Patch by Katayama Hirofumi MZ. CORE-13038
Modified:
trunk/reactos/win32ss/gdi/ntgdi/freetype.c
Modified: trunk/reactos/win32ss/gdi/ntgdi/freetype.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/gdi/ntgdi/freetype…
==============================================================================
--- trunk/reactos/win32ss/gdi/ntgdi/freetype.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/gdi/ntgdi/freetype.c [iso-8859-1] Fri Apr 7 22:30:20 2017
@@ -1358,7 +1358,15 @@
if (!FT_IS_FIXED_WIDTH(Face))
{
- TM->tmPitchAndFamily = _TMPF_VARIABLE_PITCH;
+ switch (pOS2->panose[PAN_PROPORTION_INDEX])
+ {
+ case PAN_PROP_MONOSPACED:
+ TM->tmPitchAndFamily = 0;
+ break;
+ default:
+ TM->tmPitchAndFamily = _TMPF_VARIABLE_PITCH;
+ break;
+ }
}
else
{