diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2011-10-13 14:25:18 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-10-13 15:07:41 +0200 |
commit | 1582407fc782c0befd0760633324dd5c206524a1 (patch) | |
tree | e993d66e824da41ece006d44c48acd4df0ba749e /src/gui/text/qfontsubset.cpp | |
parent | 30cb91e17d2fbbdce90f7542f44e12af971ba2de (diff) |
Remove Q_WS_ and Q_OS_SYMBIAN from QtGui.
Change-Id: I2ac3376513c3fbfc81a2e695a73a0d948d2696bc
Reviewed-on: http://codereview.qt-project.org/6607
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'src/gui/text/qfontsubset.cpp')
-rw-r--r-- | src/gui/text/qfontsubset.cpp | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/src/gui/text/qfontsubset.cpp b/src/gui/text/qfontsubset.cpp index dc2a14a52a..cf707fe78f 100644 --- a/src/gui/text/qfontsubset.cpp +++ b/src/gui/text/qfontsubset.cpp @@ -45,14 +45,8 @@ #include "private/qpdf_p.h" #include "private/qfunctions_p.h" -#ifdef Q_WS_X11 -#include "private/qfontengine_x11_p.h" -#endif #ifndef QT_NO_FREETYPE -#if defined(Q_WS_X11) || defined(Q_WS_QWS) -# include "private/qfontengine_ft_p.h" -#endif #include <ft2build.h> #include FT_FREETYPE_H #endif @@ -285,24 +279,6 @@ QByteArray QFontSubset::glyphName(unsigned short unicode, bool symbol) #ifndef QT_NO_FREETYPE static FT_Face ft_face(const QFontEngine *engine) { -#ifdef Q_WS_X11 -#ifndef QT_NO_FONTCONFIG - if (engine->type() == QFontEngine::Freetype) { - const QFontEngineFT *ft = static_cast<const QFontEngineFT *>(engine); - return ft->non_locked_face(); - } else -#endif - if (engine->type() == QFontEngine::XLFD) { - const QFontEngineXLFD *xlfd = static_cast<const QFontEngineXLFD *>(engine); - return xlfd->non_locked_face(); - } -#endif -#ifdef Q_WS_QWS - if (engine->type() == QFontEngine::Freetype) { - const QFontEngineFT *ft = static_cast<const QFontEngineFT *>(engine); - return ft->non_locked_face(); - } -#endif return 0; } #endif @@ -322,10 +298,6 @@ QByteArray QFontSubset::glyphName(unsigned int glyph, const QVector<int> reverse char name[32]; name[0] = 0; if (face && FT_HAS_GLYPH_NAMES(face)) { -#if defined(Q_WS_X11) - if (fontEngine->type() == QFontEngine::XLFD) - glyphIndex = static_cast<QFontEngineXLFD *>(fontEngine)->glyphIndexToFreetypeGlyphIndex(glyphIndex); -#endif FT_Get_Glyph_Name(face, glyphIndex, &name, 32); if (name[0] == '.') // fix broken PS fonts returning .notdef for many glyphs name[0] = 0; @@ -334,12 +306,6 @@ QByteArray QFontSubset::glyphName(unsigned int glyph, const QVector<int> reverse s << '/' << name; } else #endif -#if defined(Q_WS_X11) - if (fontEngine->type() == QFontEngine::XLFD) { - uint uc = static_cast<QFontEngineXLFD *>(fontEngine)->toUnicode(glyphIndex); - s << '/' << glyphName(uc, false /* ### */); - } else -#endif if (reverseMap[glyphIndex] && reverseMap[glyphIndex] < 0x10000) { s << '/' << glyphName(reverseMap[glyphIndex], false); } else { |