Fix LSB build

Fix compliation in LSB by removing legacy calls and adding an explicit
header.

Change-Id: I13a73211c07457195b5d5aad0854643da1e25f9b
Reviewed-by: Jiang Jiang <jiang.jiang@nokia.com>
This commit is contained in:
Harald Fernengel 2012-03-13 21:02:41 +01:00 committed by Qt by Nokia
parent 8c3e5700a1
commit 7220d7f365

View File

@ -55,6 +55,7 @@
#include <ft2build.h> #include <ft2build.h>
#include FT_TRUETYPE_TABLES_H #include FT_TRUETYPE_TABLES_H
#include FT_ERRORS_H
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
@ -362,8 +363,8 @@ QStringList QBasicFontDatabase::addTTFile(const QByteArray &fontData, const QByt
// detect symbol fonts // detect symbol fonts
for (int i = 0; i < face->num_charmaps; ++i) { for (int i = 0; i < face->num_charmaps; ++i) {
FT_CharMap cm = face->charmaps[i]; FT_CharMap cm = face->charmaps[i];
if (cm->encoding == ft_encoding_adobe_custom if (cm->encoding == FT_ENCODING_ADOBE_CUSTOM
|| cm->encoding == ft_encoding_symbol) { || cm->encoding == FT_ENCODING_MS_SYMBOL) {
writingSystems.setSupported(QFontDatabase::Symbol); writingSystems.setSupported(QFontDatabase::Symbol);
break; break;
} }