A6 and A7 supports TrueType fonts as well as the good old bitmap based fixed width fonts. Bitmap fonts are faster and more customizable (because they are actually editable bitmaps), but they are not as looking good as TrueType fonts. To overcome this, I have written a library of functions which renders strings on a basis of bitmap fonts, but with a variable width for each letter.

text rendered with a fixed width bitmap font:



text rendered with a variable width bitmap font:



features:

  • Renders strings as bitmaps -> usable with panels, sprites and entity skins
  • Multiline strings are supported (seperated with \n)
  • Left, right and center alignment
  • auto-allocation of bigger canvas bitmaps if a already existing bitmap canvas is too small to fit the new string rendering
  • convenience functions for panel usage
  • Memory is only consumpted for letters which have any alpha information in their letter region in the font file: if you put no alpha for a letter, it isn't allocated (memory friendly)
  • Font creation is easier than making a native font definition!
  • Usable under A6 and A7 if you use it in a C-Script project


and the best of all: it's free!

You'll find the download on my page. The package contains a manual (as PDF file) with some examples and everything explained and a compiled demo with open source WDL, which explains very very easily how to integrate it and use it.

Please visit: http://www.christian-behrenberg.de

Thank you very much and have fun!
Cheers - Christian