Rockbox stores fonts in a special format called FNT (see FontFormat for details). If you have a Linux and/or BSD system with an X server you probably already have a font server like xfs. You can use all the fonts available on this font server to create BDF files which you then can convert to FNT format. The procedure is quite easy: First, make sure you have a font server running. Common ones are xfs, xfs-xtt and xfstt. Usually they can be reached via a UNIX socket. On my Debian system, xfs waits for connections on
apt-get install xfsThe tool to extract arbitrary fonts in BDF format is called
fstobdf -s unix/:7100 -fn -misc-fixed-medium-r-normal--13-120-75-75-c-70-iso8859-1 > fixed-12.bdfThe
convbdf -f fixed-12.bdfwhere obviously
http://fontforge.sourceforge.net). It supports unicode natively and can generate fonts in many formats including BDF. It can import fonts in TrueType, Postscript (Type 1 - Type 3), SVG and several other formats as well. To export your font for the use with convbdf, be sure to select File->Generate fonts and choose BDF as output format. Otherwise you will get nasty error messages during conversion.
makefont [fontname]This is being updated constantly and I hope to create a GUI soon to do the same job and make it easier to use and configure. There is a new version in the works. For more information see the forum thread below. I will update this ASAP. -- GeoffStokes - 23 Feb 2007 Currently, you set the font size inside the batch file, but in the future i hope to allow this to be set either in GUI or as a command line argument. The convertor includes all necessary files in the .zip, and simply needs extraction to a convenient place. Note also that the converted font file is placed in the same folder as the original, so it's best to copy the font file into the directory which the convertor is in FIRST before starting, using a font in C:\Windows\Fonts will NOT work as the file will not be accessible from that folder. If you already have a BDF file, simply use convbdf. You can compile it from source or obtain the binary from RockboxFontConvertor#Included_Applications. For more information and downloads, see the Rockbox Font Convertor wiki page.
UiSimulator to make sure they are viewable and not overly distorted. Note that even though you may be able to rasterize and convert TrueType fonts (like the beautiful Bitstream family), for example by exporting to BDF and then following the above instructions, they'll tend to look ugly when used in Rockbox due to the low resolution. Previewing fonts with
Xfree86/Xorg server distribution source contains a lot of BDF files. A gallery of a lot of these, converted to Rockbox font format can be found here. There is a problem with some of the larger fonts, where some characters look strange, or don't work at all - if you know what's causing this (BDF files are available for download as well), please contact me (JonasHaeggqvist).
tools/convttf -p 15 -c 1 /path/to/FreeSans.ttfIt will create a file named 15-FreeSans.fnt in the current directory. Please refer to convttf's help output for details and further options.
r12 - 24 Mar 2011 - 19:42:32 - DaveHooper
Copyright © by the contributing authors.