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, 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 to built it yourself or the binary for Win32. 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
-
render-sfont22.scm
(3.5 kB) - added by jordi
3 years ago.
Mike Oliphan's script for GIMP to generate SFont font bitmaps.
-
sfontmaker.exe
(23.9 kB) - added by jordi
3 years ago.
SFont Maker binary for Windows.
-
sfontmaker-0.0.4.tar.gz
(301.4 kB) - added by jordi
3 years ago.
SFont Maker's source code.
