Detect Large/Small Fonts

How can I detect if windows are using LARGE OR SMALL FONTS ?
(FONT SIZE)
LVL 1
RogerioSilvaAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
chensuConnect With a Mentor Commented:
CDC DispDC;
DispDC.CreateIC("DISPLAY", NULL, NULL, NULL);
int nLogDPIX = DispDC.GetDeviceCaps(LOGPIXELSX),
    nLogDPIY = DispDC.GetDeviceCaps(LOGPIXELSY);

if (nLogDPIX == 96 && nLogDPIY == 96)
    // small fonts

if (nLogDPIX == 120 && nLogDPIY == 120)
    // large fonts

// otherwise, custom font size
0
 
RogerioSilvaAuthor Commented:
Thank You!
0
All Courses

From novice to tech pro — start learning today.