[Qt-interest] How can I use QFontMetrics to measure strings which contains non-ASCII characters?
Nikos Chantziaras
realnc at arcor.de
Wed Jan 19 09:58:39 CET 2011
On 01/19/2011 10:40 AM, Kermit Mei wrote:
>
>
> 2011/1/19 Willem Liu <wliu at infologic.nl <mailto:wliu at infologic.nl>>
>
> Hi Kermit,
>
> In what way did you find it inaccurate?
>
>
> Use the same length of string with Chinese characters. But the result is
> different.
Well, every character has a different size. For example the width of
"AB" is different than the width of "BC". Only fixed-width fonts (like
Courier and such) have the same width for every character.
More information about the Qt-interest-old
mailing list