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?
Printable View
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?
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.
You could combine somehow the GETTEXTMETRICS structure with the TextOut API function.