From 5d2ec2e9b1dce49e914c260fe16a82ddccbaa92d Mon Sep 17 00:00:00 2001 From: zecke Date: Mon, 12 Jul 2004 20:01:26 +0000 Subject: Query for FontFactories which implement the FontFactoryInterface on QPEApplication creation. Also update the comment in the API docu as now FontFactories are loaded --- diff --git a/library/fontfactoryinterface.h b/library/fontfactoryinterface.h index 68b0be5..36f430f 100644 --- a/library/fontfactoryinterface.h +++ b/library/fontfactoryinterface.h @@ -44,8 +44,6 @@ class QFontFactory; * The dynamic shared object goes to * OPIEDIR/plugins/fontfactories. * - * As of version Opie 1.0.2 loading of the plugins is not - * yet implemented * */ struct FontFactoryInterface : public QUnknownInterface diff --git a/library/qpeapplication.cpp b/library/qpeapplication.cpp index b686e2e..f4a7f74 100644 --- a/library/qpeapplication.cpp +++ b/library/qpeapplication.cpp @@ -80,6 +80,7 @@ #include "network.h" #ifdef QWS #include "fontmanager.h" +#include "fontdatabase.h" #endif #include "alarmserver.h" @@ -803,7 +804,6 @@ QPEApplication::QPEApplication( int & argc, char **argv, Type t ) d = new QPEApplicationData; d->loadTextCodecs(); d->loadImageCodecs(); - int dw = desktop() ->width(); setFont( QFont( d->fontFamily, d->fontSize ) ); AppLnk::setSmallIconSize( d->smallIconSize ); @@ -878,8 +878,10 @@ QPEApplication::QPEApplication( int & argc, char **argv, Type t ) #else initApp( argc, argv ); #endif - // qwsSetDecoration( new QPEDecoration() ); - +#ifdef Q_WS_QWS + /* load the font renderer factories */ + FontDatabase::loadRenderers(); +#endif #ifndef QT_NO_TRANSLATION d->langs = Global::languageList(); -- cgit v0.9.0.2