Proportionally-Spaced Fonts

Before version 2.0, all fonts for combined code pages are monospaced ones, if you assumed this in your program then your program will have problem when run on version 2.0 or later.

You can query the sizes of characters using GpiQueryWidthTable. However, this call is of little use for DBCS since there are so many DBCS characters and you will need a large table(s). Instead, you may use GpiQueryTextBox, GpiQueryCharStringPos or GpiQueryCharStringPosAt. See also Character vs. Byte.

Note:


[Back: Querying/Creating Fonts]
[Next: Selecting An MBCS Font]