Avoid fontconfig access in fontEngine creation
authorJiang Jiang <jiang.jiang@nokia.com>
Tue, 13 Sep 2011 11:33:44 +0000 (13:33 +0200)
committerQt by Nokia <qt-info@nokia.com>
Sat, 17 Sep 2011 01:20:18 +0000 (03:20 +0200)
commit8dcb52df8e2e949232ccded9fad5a4f25ba6dda2
treeabbfd1505027d42406ca187de25147509d3427c7
parent81a5885814d9db2bf7968c749aeb9c6415784086
Avoid fontconfig access in fontEngine creation

The only thing we need to know at fontEngine creation is the hinting
style, we can just store it in enumeration process and get it back
from user data pointer. So that fontEngines can be created without
access to fontconfig at all. (Since we are doing our own matching.)

Change-Id: I5ab2d1f27e28787447aedcbdef16555fb0f1b604
Reviewed-on: http://codereview.qt-project.org/4769
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jiang Jiang <jiang.jiang@nokia.com>
src/platformsupport/fontdatabases/basicunix/qbasicunixfontdatabase_p.h
src/platformsupport/fontdatabases/fontconfig/qfontconfigdatabase.cpp