QFontMetrics/QRawFont: Optimize SMP code points handling a bit
authorKonstantin Ritt <ritt.ks@gmail.com>
Sun, 10 Jun 2012 15:30:10 +0000 (18:30 +0300)
committerQt by Nokia <qt-info@nokia.com>
Thu, 14 Jun 2012 03:22:11 +0000 (05:22 +0200)
commit09bc8e2cb8238d8dee79a0f22b26efcc05ce6a52
tree29f832231beca539fd6d03261f8e7c18938827db
parentdd68e93de7eb1c50cc5b5779497e03f491c90373
QFontMetrics/QRawFont: Optimize SMP code points handling a bit

Calling QString::fromUcs4() for the single UCS-4 -encoded character is quite suboptimal
since the BOM detections and the resulting QString aren't really used;
all we need is to split the UCS-4 code point into the UCS-2 surrogate pair.

Change-Id: Ia5b68312909bf551cf2493d9e2752a7d7d837fb9
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
src/gui/text/qfontengine_p.h
src/gui/text/qfontmetrics.cpp
src/gui/text/qrawfont.cpp
src/gui/text/qrawfont.h