diff options
author | Jiang Jiang <jiang.jiang@nokia.com> | 2011-12-01 14:15:00 +0100 |
---|---|---|
committer | Jiang Jiang <jiang.jiang@nokia.com> | 2011-12-01 16:09:20 +0100 |
commit | bc25cfdd65452efa226cbd544c9ae9803eb6748a (patch) | |
tree | 47c80a8949117cd02d2f6330550910bd7a7e290a /src/gui/text/qfontengine_coretext_p.h | |
parent | d014bb648f3e8499a87c180274af5cc7e16e72de (diff) |
Fix stretched font positions in Lion
In Mac OS X 10.7 and up, According to
http://lists.apple.com/archives/Coretext-dev/2011/Nov/msg00006.html
we need to manually apply transform matrix to advances if text
matrix as been applied, CTRunGetPositions won't apply it.
Task-number: QTBUG-22825
Reviewed-by: Eskil
Diffstat (limited to 'src/gui/text/qfontengine_coretext_p.h')
-rw-r--r-- | src/gui/text/qfontengine_coretext_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/text/qfontengine_coretext_p.h b/src/gui/text/qfontengine_coretext_p.h index 4bd80beb00..495e6387fc 100644 --- a/src/gui/text/qfontengine_coretext_p.h +++ b/src/gui/text/qfontengine_coretext_p.h @@ -146,6 +146,7 @@ private: mutable QCFType<CFMutableDictionaryRef> attributeDict; CGAffineTransform transform; friend class QFontDialogPrivate; + bool transformAdvances; }; CGAffineTransform qt_transform_from_fontdef(const QFontDef &fontDef); |