proton:rtfont
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| proton:rtfont [2010/10/28 04:15] – created 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. | + | RTFont is a class to load and blit bitmapped fonts. |
| Example of use: | Example of use: | ||
| Line 60: | Line 60: | ||
| For the trajan font it needs (located in RTSimpleApp/ | For the trajan font it needs (located in RTSimpleApp/ | ||
| * 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:// | BMFont is [[http:// | ||
| - | RTPack.exe can be found in / | + | RTPack.exe can be found in **/ |
| The command line to make this font is: | The command line to make this font is: | ||
| Line 72: | Line 72: | ||
| </ | </ | ||
| - | If you're making your own font, notice the file font_trajan.mbfc is with the other font stuff. | + | If you're making your own font, notice the file font_trajan.mbfc is with the other font stuff. |
| + | |||
| + | ===Making a new font step by step=== | ||
| + | * Download [[http:// | ||
| + | |||
| + | * Do Options-> | ||
| + | |||
| + | * Choose Options-> | ||
| + | |||
| + | * (Be careful not to click any letters - it toggles them being selected, non selected letter won't export) | ||
| + | |||
| + | * Do Options-> | ||
| + | |||
| + | * It's done. Run **/ | ||
| + | |||
| + | * Once that is working, you should probably rename your font files. | ||
| ====Performance==== | ====Performance==== | ||
| The font code is fast because it batches characters together when it renders using the global RenderBatcher, | The font code is fast because it batches characters together when it renders using the global RenderBatcher, | ||
proton/rtfont.1288239319.txt.gz · Last modified: 2010/10/28 04:15 by seth
