Fix compile for systems with old fontconfig
Change-Id: Ia26796bdbab7988d14163d3c1290111c0cb22bf7 Reviewed-on: http://codereview.qt.nokia.com/182 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>bb10
parent
623c753a7b
commit
93339428c0
|
|
@ -1996,6 +1996,11 @@ void QFontDatabase::load(const QFontPrivate *d, int script)
|
|||
QFontCache::instance()->insertEngine(key, fe);
|
||||
}
|
||||
|
||||
// Needed for fontconfig version < 2.2.97
|
||||
#ifndef FC_FAMILYLANG
|
||||
#define FC_FAMILYLANG "familylang"
|
||||
#endif
|
||||
|
||||
static void registerFont(QFontDatabasePrivate::ApplicationFont *fnt)
|
||||
{
|
||||
#if defined(QT_NO_FONTCONFIG)
|
||||
|
|
|
|||
Loading…
Reference in New Issue