radekp/qtmoko — Issue #65: qpe on qvfb finds no font
Author: ydirson
Created: 2012-03-07 21:13:34+00:00
State: open

Only empty squares are displayed in place of text characters, starting from firstuse screen.

If I add the patch below, the only trace I have says : paintEvent font: "" -1
The fontdatabase really seems empty...

--- a/src/server/ui/components/firstuse/firstuse.cpp
+++ b/src/server/ui/components/firstuse/firstuse.cpp
@@ -24,6 +24,7 @@
#include "../../../../settings/language/languagesettings.h"

#include
+#include

#include
#include
@@ -38,6 +39,7 @@
#include
#include
#include
+#include

#include "qtopiainputevents.h"

@@ -508,6 +510,12 @@ void FirstUse::paintEvent(QPaintEvent *)
f.setPointSize(8);
f.setItalic(false);
f.setBold(false);
+ QFontInfo fi(f);
+ qLog(UI) << "paintEvent font: " << fi.family() << " " << fi.pixelSize();
+
+ QFontDatabase database;
+ foreach (QString family, database.families())
+ qLog(UI) << " available font fam: " << family;

p.setFont(f);
p.setPen(QPen(Qt::black));