Enabling ClearType setting in windows vista changes the font size
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
Hello, I have develpoed an application on windows 2003sp1 which has to do with font. I have drawn text and set the font size as 36 and I have opend the same application in windos vita using cleartype enabled I could see the size of the font has reduced to 1 that is the font size has become 35.This is because in windows vista does font smoothing when cleartype is enabled due to which the font size reduces. Here is the code
SystemParametersInfo(SPI\_GETFONTSMOOTHING, 0, &IsEnabled, 0); templfQuality = td->lf.lfQuality; if( IsEnabled && templfQuality != NONANTIALIASED\_QUALITY ) { td->lf.lfQuality = NONANTIALIASED\_QUALITY; }
I am checking this way but its not working properly Regards