Make fontconfig default font locale aware
authorJiang Jiang <jiang.jiang@nokia.com>
Wed, 30 May 2012 14:27:09 +0000 (16:27 +0200)
committerQt by Nokia <qt-info@nokia.com>
Thu, 31 May 2012 07:13:01 +0000 (09:13 +0200)
commit47462ffd68023efd5497d50e02c56ed571b838c5
tree76005c7365d126efc711047cbc51a49b14337d4d
parent94492d88a7f483e08af328cfe1e7f3695a8661a4
Make fontconfig default font locale aware

Application default font should be locale aware in fontconfig db
as in other font databases. We use a hack to obtain the system
default language parsed by fontconfig and use that to find out
the preferred font for a given language (such font list is edited
by fontconfig from fonts.conf in FcConfigSubstitute() process).

Change-Id: I99bb8dd29d2dde2c8019ed8e77f5bfc09ddf3ca5
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
src/platformsupport/fontdatabases/fontconfig/qfontconfigdatabase.cpp