View Single Post
  #532 (permalink)  
Old 20th Apr 2010, 3:29 am
flasher86 flasher86 is offline
Member
I love my MPx player
 
Join Date: Jun 2009
Posts: 174
Default

Of course, you can load as many fonts as you wish, different sizes, faces, styles. My drawing function just require offset to the resource file where the binary font is stored. I made a special format for this font, to speed up the loading. I will release a tool for converting fonts into my format (is 99% done). Though it's not native. It converts exported font from AngelCode Bitmap Font Generator (a freeware tool which generates bitmap fonts from system TrueType fonts). In my tool you just open exported font, and it creates one bin file which you can add to RKP resources and its done.

I created this thinking of RTF reader where I could convert a bunch of different fonts and sizes so there will be no problem for displaying formatted text - while I change the offset to different font it will draw it as normal, without any special config (all necessary info is stored in binary font ex. widths of chars, line-height and such).

Last edited by flasher86; 20th Apr 2010 at 4:11 am.
Reply With Quote