qt-embedded-interest@trolltech.com
[Top] [All Lists]

RE: Fonts on device problem

Subject: RE: Fonts on device problem
From: "Gert Muller"
Date: Thu, 13 Jul 2006 07:21:50 -0700
Hi Tim,

I had the same trouble here but with an ARM system.

1) If you don't have a fontdir file in the right place, the application
prints on the command line (shell) something to the effect of "Cannot
find font definition file /usr/blahblah.../lib/fonts/fontdir ... is Qt
installed correctly?"

If you see this message, you need to create that folder and put the
fontdir file and the fonts listed inside it in that folder.

2) I originally had all the folders correct and some *.pfa files in the
fonts folder, but not the *.pfb files, when I copied them in, it showed
something on the screen.

3) If you put a qt.conf file in your application folder, it wants the
'lib/fonts' folder to be somewhere else ... If you have a qt.conf with

[Paths]
Prefix = /

as a minimum, your app will want the 'fonts' folder in '/lib'

I am not sure if this helps, but I had (and still have) a painful time
with the fonts, like how do you get Designer to show you the fonts from
the embedded system?

I could post some code that will show where the Qt app expects the
QLibInfo folders to be...


-----Original Message-----
From: tim [mailto:tim_mickelson@xxxxxxxxxxx] 
Sent: Thursday, July 13, 2006 8:36 AM
To: qt-embedded-interest@xxxxxxxxxxxxx
Subject: Fonts on device problem

   Hello,

   So I downloaded the qtopia-core-opensource-src-4.1.4.tar.gz,
uncompressed and made a

   ./configure -embedded x86 -debug -static -qt-sql-mysql -no-qvfb
-I/usr/include/mysql

Then I made a project with a QMainWindow and lots of textboxes, labels,
etc etc. Compile (qmake make, etc etc) and then copy the executable to
my embedded device (x86). The problem is, when I run the application, I
can not see any text, otherwise it is perfect. No labels, no nothing,
not a single character. I was guessing that it was a font problem, so I
copied the /usr/local/Trolltech/QtopiaCore-4.1.4-i386/lib/fonts/
directory to my embedded device. mkdir /opt/Qtopia/lib/fonts. Then I set
on the embedded device: export QTDIR=/opt/Qtopia. But no help, it still
doesn't work.

   Anyone that could help me??

   P.s. Is it my opinion, or is there little or no documentation about
exporting your application to your device? I've seen mentioned many
times an image directory, I don't have one, so I belive it's for the
older versions of Qtopia, non Qtopia-Core.

To unsubscribe - send "unsubscribe" in the subject to
qt-embedded-interest-request@xxxxxxxxxxxxx

To unsubscribe - send "unsubscribe" in the subject to 
qt-embedded-interest-request@xxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>