Remove some metrics parsing code from Core Text
authorJiang Jiang <jiang.jiang@nokia.com>
Wed, 6 Jul 2011 12:31:33 +0000 (14:31 +0200)
committerQt by Nokia <qt-info@nokia.com>
Mon, 11 Jul 2011 10:43:52 +0000 (12:43 +0200)
commit915ec02cadcd6e3ca423968a094a97ad417783a1
tree10892865d4b43d25eeebafc9a6e14ecd98551733
parentab5ff2965cf9143a5880e928171616e4c16344fd
Remove some metrics parsing code from Core Text

The respective value in some of the default fonts like Lucida Grande
are simply not reliable. It seems that the only reliable way to get
such information is by going through all the glyphs.

It seems that these code are not well tested on Mac and should be
removed for now since it caused visible regressions in QLineEdit
rendering.

Reviewed-by: Eskil
(cherry picked from commit 8032d6f4ced50837e126f28c1475ad89eaf91ad7)

Change-Id: I85e71a2e3228a367659be9f5f6ec3e667e0ce902
Reviewed-on: http://codereview.qt.nokia.com/1264
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jiang Jiang <jiang.jiang@nokia.com>
src/gui/text/qfontengine_coretext.mm
src/gui/text/qfontengine_coretext_p.h