summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qfontengine_p.h
diff options
context:
space:
mode:
authorNorwegian Rock Cat <qt-info@nokia.com>2009-04-02 10:45:38 (GMT)
committerNorwegian Rock Cat <qt-info@nokia.com>2009-04-02 11:02:54 (GMT)
commite008504b5ec34975e34adf3b1a2b7170d0e4dd38 (patch)
tree8515ea0c32bb3eaef2b33d1ebe844c1057ac6179 /src/gui/text/qfontengine_p.h
parent227b0b1e2cfa94912180fb401ddac83a2b5525d7 (diff)
downloadQt-e008504b5ec34975e34adf3b1a2b7170d0e4dd38.zip
Qt-e008504b5ec34975e34adf3b1a2b7170d0e4dd38.tar.gz
Qt-e008504b5ec34975e34adf3b1a2b7170d0e4dd38.tar.bz2
Fixing some CoreText errors.
Apparently CoreText is too good for us and always gives us fractional information. Which would be food for design metrics, but not good for drawing to the screen. The upshot of it is that we do the ceiling of every value we get. This is as stop gap solution for the moment. Things in Creator should look better now. Also added the ability to disable kerning. Reviewed-by: Simon Hausmann
Diffstat (limited to 'src/gui/text/qfontengine_p.h')
-rw-r--r--src/gui/text/qfontengine_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/text/qfontengine_p.h b/src/gui/text/qfontengine_p.h
index e289aa9..176c728 100644
--- a/src/gui/text/qfontengine_p.h
+++ b/src/gui/text/qfontengine_p.h
@@ -480,7 +480,7 @@ private:
uint fontIndexForFont(CTFontRef id) const;
CTFontRef ctfont;
- mutable QCFType<CFDictionaryRef> attributeDict;
+ mutable QCFType<CFMutableDictionaryRef> attributeDict;
friend class QFontDialogPrivate;
};