TextExtent
-
I try to measure the dimension for a text say "Hello". I set mapping mode to MM_LOENGLISH. CFont font; font.CreatePointFont(360,"Verdana"); pDC->SelectObject(&font); CSize sz = pDC->GetTextExtent("Hello"); the width sz.cx (1.19 inch) seems ok in real printing. But sz.cy (0.57inch) is greater than the actual (0.344inch) in printout. Can anyone tell me how to calculate the real height???
-
I try to measure the dimension for a text say "Hello". I set mapping mode to MM_LOENGLISH. CFont font; font.CreatePointFont(360,"Verdana"); pDC->SelectObject(&font); CSize sz = pDC->GetTextExtent("Hello"); the width sz.cx (1.19 inch) seems ok in real printing. But sz.cy (0.57inch) is greater than the actual (0.344inch) in printout. Can anyone tell me how to calculate the real height???