Open ydirson opened 12 years ago
Using -runmode stace I discover about /tmp/qtembedded-0/fonts/fontdb, which is pretty much empty on the host, while it is much larger on the device, where it contains paths to .ttf files, while image/lib/fonts/ only contains .qpf2 files.
A simple "cp ../qtmoko/qtopiacore/qt/lib/fonts/*ttf image/lib/fonts/" is sufficient to get things working, the qbuild image target seems to need some fixing.
In fact, the relevant fonts are not even installed when building for the device, where /opt/qtmoko/lib/fonts is instead a symlink to /usr/share/fonts/truetype/ttf-dejavu, where the fonts are installed by another package.
This seems to advocate for:
OK, what happens is somewhat more clear:
Things to be done:
Additional things do maybe do:
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);
p.setFont(f); p.setPen(QPen(Qt::black));