User Tools

Site Tools


proton:rtfont

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
proton:rtfont [2011/07/14 09:37]
seth
proton:rtfont [2012/09/26 22:40] (current)
seth
Line 1: Line 1:
 ====Using RTFont==== ====Using RTFont====
-RTFont is class to load and blit bitmapped fonts. ​ It loads a custom .rtfont format which includes kerning data, the font image, colors for "color codes"​. ​ (Old school BBS people who played LORD may remember this as "Seth ANSI", it just allows you to change color easy in a text string)+RTFont is class to load and blit bitmapped fonts. ​ It loads a custom .rtfont format which includes kerning data, the font image, colors for "color codes"​. ​ (Old school BBS people who played LORD may remember this as "Seth ANSI", it just allows you to change color easy in a text string)
  
 Example of use: Example of use:
Line 60: Line 60:
 For the trajan font it needs (located in RTSimpleApp/​media/​interface) : For the trajan font it needs (located in RTSimpleApp/​media/​interface) :
   * font_trajan.fnt (kerning data and locations of each character in the bmp, output by BMFont)   * font_trajan.fnt (kerning data and locations of each character in the bmp, output by BMFont)
-  * font_trajan_00.png (the bitmap itself, a png with alpha) +  * font_trajan_00.png (the bitmap itself, a png with alpha)(output by BMFont
-  * font_trajan.txt (a text file with directions for RTPack.exe on what file names to load and what color codes should do)+  * font_trajan.txt (a text file with directions for RTPack.exe on what file names to load and what color codes should do.. you have to make this)
  
 BMFont is [[http://​www.angelcode.com/​products/​bmfont/​|AngelCode'​s Bitmap Font Generator]],​ a free utility to generate bmps and data for fonts. BMFont is [[http://​www.angelcode.com/​products/​bmfont/​|AngelCode'​s Bitmap Font Generator]],​ a free utility to generate bmps and data for fonts.
  
-RTPack.exe can be found in /​shared/​win/​utils ​and can only be run on a Windows system at the moment.+RTPack.exe can be found in **/​shared/​win/​utils**.  If you'​re ​on linux/osx, check [[proton:​rtpack|here]] for info on compiling it.  (It also works using wine: RTPack.exe -opts etc).
  
 The command line to make this font is: The command line to make this font is:
proton/rtfont.1310636264.txt.gz · Last modified: 2011/07/14 09:37 by seth