Turn on HarfBuzz support for Mac/Cocoa
authorJiang Jiang <jiang.jiang@nokia.com>
Mon, 18 Apr 2011 15:08:30 +0000 (17:08 +0200)
committerJiang Jiang <jiang.jiang@nokia.com>
Fri, 29 Apr 2011 09:02:23 +0000 (11:02 +0200)
commita7b6f4c8a532df62ba053f30f23dfaecc148351a
tree0454d5709011af7664e9d31c8e6e204133860ac7
parent0f7cba14f612885151a95c590b23c5fe25efdd05
Turn on HarfBuzz support for Mac/Cocoa

It's possible to enable HarfBuzz text layout on Mac by either:

- Set QT_ENABLE_HARFBUZZ environment variable when running a Qt
  app.

- configure with -harfbuzz to build Qt, then HarfBuzz support
  will be turned on by default.

HarfBuzz will only be used when the font explicitly requested
is supported by HarfBuzz (aka. TrueType/OpenType font), other
fonts (AAT fonts) will still be handled by Core Text.

Using HarfBuzz for text layout will hopefully solve most tricky
complex text shaping bugs on Mac.

Task-number: QTBUG-17728
Reviewed-by: Eskil
configure
src/gui/text/qtextengine.cpp
src/gui/text/text.pri