Font size?
-
Hi.. just wanna ask a simple question.. given the LOGFONT data structure.. how would I know the FONT SIZE of the TEXT displayed..'cuz seems like lfHeight and lfWidth need to be transformed or processed to get the FONT SIZE? Thanks in advance!!!
Initialize the structure with a call to GetTextMetrics(ex) "An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
-
Hi.. just wanna ask a simple question.. given the LOGFONT data structure.. how would I know the FONT SIZE of the TEXT displayed..'cuz seems like lfHeight and lfWidth need to be transformed or processed to get the FONT SIZE? Thanks in advance!!!
The relation between lfHeight and the font's point size is: lfHeight = -MulDiv(PointSize, GetDeviceCaps(hDC, LOGPIXELSY), 72); /ravi "There is always one more bug..." http://www.ravib.com ravib@ravib.com