summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2011-08-02 12:17:34 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2011-08-02 12:17:34 (GMT)
commit08d4a7ba40be36d8d8ae63b3bbaeb7823441c8aa (patch)
treed0f621991ecbf65ebfb33af296514b190ae4f301
parentcc600983995d9964364f5b63f2edb69d4fc3768a (diff)
parent6cc32482afd610e2808bde42b6a01dd78b79d809 (diff)
downloadQt-08d4a7ba40be36d8d8ae63b3bbaeb7823441c8aa.zip
Qt-08d4a7ba40be36d8d8ae63b3bbaeb7823441c8aa.tar.gz
Qt-08d4a7ba40be36d8d8ae63b3bbaeb7823441c8aa.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-s60-public into 4.7-integration
* '4.7' of scm.dev.nokia.troll.no:qt/qt-s60-public: Detect linked fonts by name (insead of via CLinkedTypeface* Api)
-rw-r--r--src/gui/text/qfontdatabase_s60.cpp23
1 files changed, 2 insertions, 21 deletions
diff --git a/src/gui/text/qfontdatabase_s60.cpp b/src/gui/text/qfontdatabase_s60.cpp
index ffecca7..f29c880 100644
--- a/src/gui/text/qfontdatabase_s60.cpp
+++ b/src/gui/text/qfontdatabase_s60.cpp
@@ -62,33 +62,14 @@
#define SYMBIAN_LINKEDFONTS_SUPPORTED
#endif // !SYMBIAN_VERSION_9_4
-#ifdef SYMBIAN_LINKEDFONTS_SUPPORTED
-#include <linkedfonts.h>
-#endif // SYMBIAN_LINKEDFONTS_SUPPORTED
-
QT_BEGIN_NAMESPACE
-#ifdef SYMBIAN_LINKEDFONTS_SUPPORTED
-static bool isLinkedFontL(const TDesC &aTypefaceName)
-{
- CLinkedTypefaceSpecification *linkedspec = CLinkedTypefaceSpecification::NewLC(aTypefaceName);
- CFbsTypefaceStore *tfs = CFbsTypefaceStore::NewL(NULL);
- CleanupStack::PushL(tfs);
- linkedspec->FetchLinkedTypefaceSpecificationL(*tfs);
- CleanupStack::PopAndDestroy(tfs);
- CleanupStack::PopAndDestroy(linkedspec);
- return true;
-}
-#endif // SYMBIAN_LINKEDFONTS_SUPPORTED
-
bool qt_symbian_isLinkedFont(const TDesC &typefaceName) // Also used in qfont_s60.cpp
{
bool isLinkedFont = false;
#ifdef SYMBIAN_LINKEDFONTS_SUPPORTED
- if (RFbsSession::Connect() == KErrNone) {
- TRAP_IGNORE(isLinkedFont = isLinkedFontL(typefaceName));
- RFbsSession::Disconnect();
- }
+ const QString name((const QChar*)typefaceName.Ptr(), typefaceName.Length());
+ isLinkedFont = name.endsWith(QLatin1String("LF")) && name == name.toUpper();
#endif // SYMBIAN_LINKEDFONTS_SUPPORTED
return isLinkedFont;
}