How to paint unicode surrogate pairs using QPainter?
-
If a unicode character with code values above 65535, it will be stored using surrogate pairs, I store it in an QString object, and draw it with QPainter, but nothing will appear, is this a bug? or QPainter's drawText just doesn't support characters above 65535?
I have set a correct font, the same font in other text editors / word processers can display this character.
Here is a unicode character for test: "http://www.unicode.org/cgi-bin/GetUnihanData.pl?codepoint=22489":http://www.unicode.org/cgi-bin/GetUnihanData.pl?codepoint=22489 -
I tested this problem with a QTextEdit control, QTextEdit have the same problem - it can't display the complex Chinese character.