diff options
author | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com> | 2010-08-04 11:09:30 (GMT) |
---|---|---|
committer | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com> | 2010-08-06 08:26:26 (GMT) |
commit | 5e06fcfa6139988cce2e88d604ba8e05d5e43dd0 (patch) | |
tree | b2baaf8fa1538b42230f4f584e888be2c291bda6 /src/gui/text/qfontmetrics.h | |
parent | 63711cb855114b879c6bad192708bf6a19c31f32 (diff) | |
download | Qt-5e06fcfa6139988cce2e88d604ba8e05d5e43dd0.zip Qt-5e06fcfa6139988cce2e88d604ba8e05d5e43dd0.tar.gz Qt-5e06fcfa6139988cce2e88d604ba8e05d5e43dd0.tar.bz2 |
Implement QFontMetrics::inFont(uint) which takes UCS-4 encoded char
Support unicode characters which are not representable in 16 bits in
QFontMetrics::inFont() to enable font selection algorithms for unicode
ranges that require surrogates.
Task-number: QTBUG-12638
Reviewed-by: Simon Hausmann
Diffstat (limited to 'src/gui/text/qfontmetrics.h')
-rw-r--r-- | src/gui/text/qfontmetrics.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/text/qfontmetrics.h b/src/gui/text/qfontmetrics.h index 2518b54..9911ad2 100644 --- a/src/gui/text/qfontmetrics.h +++ b/src/gui/text/qfontmetrics.h @@ -85,6 +85,7 @@ public: int averageCharWidth() const; bool inFont(QChar) const; + bool inFontUcs4(uint ucs4) const; int leftBearing(QChar) const; int rightBearing(QChar) const; @@ -162,6 +163,7 @@ public: qreal averageCharWidth() const; bool inFont(QChar) const; + bool inFontUcs4(uint ucs4) const; qreal leftBearing(QChar) const; qreal rightBearing(QChar) const; |