Qtopia Home - Classes - Hierachy - Annotated - Functions - Licenses - Reference |
|
Due to performance or size constraints on the device there may be a need to convert the installed Qt/Embedded fonts into Qt Pre-rendered Font (QPF) font files. The makeqpf tool can be used to convert a True-type Font (TTF) or Bitmap Distribution Format (BDF) font into a QPF font taking into account:
The makeqpf requires certain macros to be (un)defined. If Qt/Embedded is configured with "-qconfig makeqpf" the file $QTDIR/src/tools/qconfig-makeqpf.h defines all required macros. As a result:
For a description of all features in Qt/Embedded see The Feature Definition File
Warning: If TTF support is allowed then the freetype development headers libraries need to be available.
tar -xzvf qtopia-p*-src-*.tar.gz
cd qtopia-p*-2*
./configure
cd qt2
export QTDIR=$PWD
export PATH=$QTDIR/bin:$PATH
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
QPEDIR=$QTDIR ./configure -embedded -no-xft -no-sm -qconfig makeqpf -static -qvfb -depths 8,16,24,32 \
-I3rdparty/freetype/src -I3rdparty/freetype/include -I3rdparty/freetype/builds/unix
make sub-src
echo "Build makeqpf"
make -C tools/makeqpf
cd ..
echo "Build QVFb"
make qt2
./configure -qconfig makeqpf [extra options]
make
make -C tools/makeqpf
Makeqpf, like any other Qt/Embedded application, relies on $QTDIR/lib/fonts/fontdir to correctly list the available fonts. For more information see QWS Fonts.
To add a new font for use by Qt/Embedded edit the $QTDIR/lib/fonts/fontdir file then run either makeqpf or makeall.
makeqpf [-A] [-f spec-file] [font ...]
For example, to convert all symbols in the "fixed" font into a QPF font, for all rotations then run :
./makeall fixed
A more complicated example is to make a "fixed" font with the currency symbols
cd $QTDIR/tools/makeqpf
echo "fixed 0-ff,20a0-20af" > fontlist
export QWS_DISPLAY=Transformed
./makeall -f fontlist
./makeqpf -f fontlist
See also ./makeqpf --help
Hint:Press <CTRL>-Q should you wish to quit makeqpf.
| Copyright © 2005 Trolltech | Trademarks | Qtopia version 2.2.0
|