I am trying to find the default system font size using SystemParametersInfo()
with SPI_GETNONCLIENTMETRICS
.
While on Vista the LOGFONT
structures inside the returned NONCLIENTMETRICS
actually have the correct font height in lfHeight
, when I run the exact same app on XP, lfHeight
(and lfWidth
) are always zero.
Why is that so, and what is the correct way to retrieve the font size on both systems?