Support synthesized oblique and bold in SceneGraph
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
Fri, 16 Sep 2011 09:58:09 +0000 (11:58 +0200)
committerQt by Nokia <qt-info@nokia.com>
Mon, 19 Sep 2011 08:24:25 +0000 (10:24 +0200)
commit20009ed797fb30952a889df5716aa2399102be58
tree29a351b3d64a1d9133e1d7d5ab1ce8501ef96c58
parent76e56fc449749909ead292f632fb7965cfa9ae78
Support synthesized oblique and bold in SceneGraph

When fetching the outlines we need to synthesize the weight and
style of the requested font. This is currently only supported
on FreeType versions that have the Embolden and Oblique functions.
We also use FreeType's Oblique function for regular text when
possible, and only use the matrix approach when that function
is unavailable.

Task-number: QTBUG-21202
Change-Id: I0656ab66cc3ec70d6a7675b8c78d06632625261c
Reviewed-on: http://codereview.qt-project.org/5076
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jiang Jiang <jiang.jiang@nokia.com>
src/gui/text/qfontengine_ft.cpp
src/gui/text/qfontengine_ft_p.h