release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Wiki > Main > RockboxFontConvertor (compare)

Difference: RockboxFontConvertor (r7 vs. r6)

Rockbox Font Convertor

BYO fonts for the Open Source Jukebox Firmware.

I'm happy with the content now. If you want to tidy up bits that are unnecessary, feel free.

Download


Latest Version: 1.2


This version is currently only available with the lite edition. New users please download the full package first, then get the lite edition (Which is a newer version)

About the Program

Lite (Update) Edition

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. -- GeoffStokes

This is for users who have already downloaded a previous version. The "lite" edition is likely to be updated more often (And faster) than the normal downloads.

To use the Lite edition, you simply replace the previous version's makefont.bat and use it as normal.


Lite Edition mirrors are as follows: Main Mirror (Thanks to Kezza): Lite Edition (Version 1.2)

Main Features

4Shared File Hosting Mirror: Lite Edition (Version 1.2)

  • 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 quotes)

Quina's Mirror: Not Available.

Full Zip Package (Version 1.1)


The following links are to an older version. If you are a new user you must first download the full zip (One of these), then download the latest Lite Edition.

Download

These links are being updated ASAP. Latest Version: 1.2

Quina's Mirror: Zip | 7z

Instructions

Thanks to Kezza & Quina for their hosting.

With a reasonable understanding of how the command prompt works

Latest Changes

Open a command prompt window to the font convertor folder and type:

Version 1.2

+ Fixed Drag-Drop usage. - Fixed Help Prompting.

Version 1.1A

+ Added Multiple Font Processing + Added command for font size

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.

Included Applications

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 file can be either a TTF (TrueType) or an OTF (OpenType). (OpenType) font. It will then convert the file and save it as [fontsize]-[Fontfile].fntin the same directory as the original original. font file.

With very little command prompt knowledge

With very little command prompt knowledge

  • Press Start, Go to the Windows Start menu and click Run...
  • In the window that appears, type "cmd" (No "s) and hit enter. cmd and hit enter.
  • Type "cd \" and hit enter. 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 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. 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") .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.

Main Features


  • 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)

Changelog

Known Problems

Version 1.2

  • Drag and drop Fixed Drag-Drop usage. doesn't work.
  • Most 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. Fixed Help Prompting.

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. -- GeoffStokes

Version 1.1A

Planned Improvements

  • Added Multiple Font Processing
  • Added command for font size
  • GUI (Not really necessary, but asthetically better off, as well as for newbie use. 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 (Fixed in version 1.2)


Other Information


Font Sizing Planned Improvements

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.

  • GUI (Not really necessary, but asthetically better off, as well as for newbie use. 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

Notes


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...

Included Applications

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

Both are free, and included, but I'll include the links anyway. Just make sure both application files are in the same folder as the batch file and you'll be fine.

More information and a slightly less technical discussion of this can be found at the
MisticRiver Forums, Here

A more technical discussion of the project can be found on the Rockbox forums, Here


Discussion Known Issues

Please keep discussion to the forum posts linked above. That way i'll be notified and can help you out.

  • Most modern fonts use Anti-aliasing to make them look good on-screen. Unfortunately the Rockbox font format does not support this, and fonts created that make heavy use of anti-aliasing may look blocky as any areas even slightly shaded by the font are shown fully when converted. Anti-aliasing 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 anti-aliased areas default to not showing, however no progress has been made on this.
  • Setting a font to 8pt is not necessarily going to make 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.



Related Links

More information and discussion of this can be found at the MisticRiver Forums, here, and a more technical discussion of the project can be found on the Rockbox forums, here


r8 - 25 Apr 2008 - 01:05:34 - MarcGuay

Revision r7 - 24 Apr 2008 - 23:32 - MarcGuay
Revision r6 - 03 Apr 2007 - 14:14 - GeoffStokes
Copyright by the contributing authors.