[Qt-interest] How can I use QFontMetrics to measure strings which contains non-ASCII characters?
Kermit Mei
kermit.mei at gmail.com
Thu Jan 20 02:05:49 CET 2011
2011/1/19 Willem Liu <wliu at infologic.nl>
> Hi Kermit,
>
> Do you mean that when it's painted on screen that the length of those
> Strings are the same, but the QFontMetrics return different values for both
> of the Strings?
> I assume you use the same font with exactly the same font settings for both
> Strings. Then I can only think of one more thing which is highly unlikely,
> but can it be that the font isn't monospaced/non-proportional?
>
Yes, it's not monospaced, But looked like monospaced. May be I should try to
use some monospaced font ...
Thanks
<snip>
--
B.R
Kermit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110120/e7d56e4a/attachment.html
More information about the Qt-interest-old
mailing list