CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2001
    Posts
    35

    Small font vs large font

    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?


  2. #2
    Join Date
    Mar 1999
    Location
    Nepal
    Posts
    540

    Re: Small font vs large font

    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.


  3. #3
    Join Date
    Aug 2000
    Posts
    34

    Re: Small font vs large font

    You could combine somehow the GETTEXTMETRICS structure with the TextOut API function.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured