Click to See Complete Forum and Search --> : Small font vs large font


vzcharlie
April 24th, 2001, 06:51 PM
Why does my application that uses custom shaped windows, look so strange when large fonts is used in Windows? Is there a way to have the graphics align properly no matter if it is small or large fonts?

shree
April 24th, 2001, 09:05 PM
We generally assume 15 TwipsPerPixel. But when Windows uses large fonts, it is different. That might be one reason. To make the interface consistent, use twips as display units in all places and twips/screen.twipsperpixelx and twips/screen.twipsperpixely wherever pixel values are needed.

Vikktor
May 7th, 2001, 04:54 AM
You could combine somehow the GETTEXTMETRICS structure with the TextOut API function.