Rockbox Font Convertor
Open Source Jukebox Firmware.
I'm happy with how it is now. Feel free to edit and make adjustments to the style as you wish.
Current Version: 1.1 (Release)
4Shared: Zip Version
| 7z Version
Quina's Mirror: Zip
Thanks to Kezza & Quina for their hosting.
About the program
After reading the thread about converting fonts in this post
, I decided to code a batch file to do the work for me. This is the result, the Rockbox font convertor. It ain't in any way pretty, as it's all in command prompt, but it does the job and does it well and pretty damn fast, too.
Both are free, and included, but ill include the links anyway. Just make sure both application files are in the same folder as the batch file and you'll be fine.
How to use the program:
With a reasonable understanding of how the command prompt works
Open a command prompt window to the font convertor folder (Drag and drop doesn't work properly) and type:
makefont [Fontsize] [Fontfile]
The original font can be either a TTF (TrueType) or an OTF (OpenType).
It will then convert the file and save it as
in the same directory as the original font file.
With very little command prompt knowledge
- Press Start, click Run...
- In the window that appears, type "cmd" (No "s) and hit enter.
- Type "cd \" and hit enter.
- Navigate to the folder containing your font file by doing the following:
- Look at the folder window where the program is, and note the full address (or Path)
- In the command prompt window, type "cd " and the name of everything between the first two "\"s
- For example, if my path is "C:\My Documents\fontconvertor\" then I type "cd My Documents", hit enter, then "cd fontconvertor" and hit enter.
- Or, you can type the whole path, ie "cd My Documents\fontconvertor" and hit enter.
- type "makefont [The font size you want in converting] [The name of the font file]" and hit enter (The font size isn't necessary - it uses 8pt if you don't specify.
- If it claims there is no such file, make sure you type the extension (For most fonts it's ".ttf")
- The process should complete, displaying it's progress, and tell you when it is complete. Then simply drag the created file onto your player.
If someone thinks I missed something here, please PM me.
- Convert ANY .ttf or .otf file into a rockbox font, without having to remember two program names - just type "makefont [size] [file]" and bam! it's converted.
- Small, portable - small enough to make no noticable impact on your player's storage.
- Super-fast - does most of the hard work for you! you don't have to intervene between the two conversions which are performed!
- Automatically deletes the middle file - The BDF file used to convert is deleted by the program automatically, making the directory slightly more tidy than if it didn't.
- Waits until you hit a key after finishing so you can check everything went smoothly.
- Now happily converts fonts with long, spaced filenames (Unless the first word is a number - in which case it doesn't work properly - try putting the filename in ""s)
Please don't add problems here directly. Please post it to one of the forum threads listed below so we can discuss and attempt to recreate the problem and help.
- Drag and drop doesn't work.
- Mot modern fonts use Antialiasing to make them look good on-screen. Unfortunately the rockbox font format does not support this, and fonts created that make heavy use of antialiasing may look blocky as any areas even slightly shaded by the font are shown fully when converted. Antialiasing is something I can't do for the fonts (It would need to be provided by the Rockbox core), however, i may be able to get the fonts to look better by making the antialiased areas default to not showing, however no progress has been made on this.
- GUI (Not really necessary, but asthetically better off. Need a simple, light-weight programming language and compiler. Any ideas? - NOT .NET! LIGHTWEIGHT!)
- if the file is already a BDF, just convert it straight to a .fnt
- Get drag/drop working
One point i have to make is that setting 8pt is not necessarily making a font that is 8px high
. Different fonts have different sizes in their pt size. Have a fiddle with sizing and see what works best.
Also, if anyone downloads this and have any luck/problems please post! I'd love some constructive criticism!
I'm lazy so this was mostly copied verbatim from the Rockbox forum post, which was copied from the original MisticRiver
post. Things may have been lost or cleaned up in the translation from VBulletin > Simple Machines > TWiki, however i believe it has been cleaned up pretty well...
This isn't officially supported by any of the rockbox devs (Though i'm sure thy can help). If you need help, PM or email me. I'm sorry it's Windows only - i know 70% of the rockbox community are probably Linux or Mac Os users, but that's what i run and what I'm moderately OK at.
Related Links & Forum Threads
More information and a slightly less technical discussion of this can be found at the MisticRiver
A more technical discussion of the project can be found on the Rockbox forums, Here
Please keep discussion to the forum posts linked above. That way i'll be notified and can help you out.
Copyright © by the contributing authors.