Fonts

Amoebax uses a custom  SFont based C++ library for text rendering. This library uses the same bitmap format so the same fonts and tools can be used.

Among the available SFonts tools, we use the  GIMP's script created by  Mike Oliphant. To use the script Download, copy it to the scripts directory: “~/.gimp-2.2/scripts” in GNU/Linux or “%PROGRAMFILES%\gimp-2.2\scripts” in Windows.

To add the separation pixels between characters in the bitmap generated by Oliphant's script we use a command line tool called  SFont Maker, made also by Mike Oliphant. You can download the source code Download to built it yourself or the binary for Win32 Download. The only thing to have into account is that sometimes the bitmaps generated by this tool needs some manual tweaks: one of the commons problems I've found is that sometimes it doesn't add the first separator pixel and so the text gets “shifted”.

Attachments