GetTextMetrics returning different maximum and average character width for Courier New

后端 未结 1 1975
太阳男子
太阳男子 2021-01-22 16:29

I\'m maintaining an application using Borland C++ Builder 6 running on Windows 7.

The application is incorrectly drawing text using font Courier New because each letter

相关标签:
1条回答
  • 2021-01-22 17:22

    I found this was indeed ClearType at work (thanks Deanna). Turning off ClearType corrects the display issue without changing any code, although I still need to correct how the application works with ClearType.

    I also found the issue was not present on Windows XP because ClearType is turned off by default, whereas in Windows 7 (and Vista) it is turned on by default.

    0 讨论(0)
提交回复
热议问题