
TGB font tool by Joe Rossi




INSTALLATION:
 Simply drop this into your game/resources folder, and you should see a new button in the editor.
It will be black and have a big "F" on it, when you hover it will say "Font Creation Tool".


USAGE:
 Click once to bring up the font menu. 
 Select a font and a font size. 
 Click "OK". 
 Now there will be a font image in your game/common/ui/png folder.  
 Edit that in your preferred image manipulation program (I use GIMP).
 When you finish editing, click the FontBoy button again to load the image.  
 Now you can load it and use it on a t2dTextObject with a function like so:

 
function loadCustomFont( %name, %size, %weight){ 
    %pngdir = "pngs/";
    %fontdir = "common/ui/cache/";  
    %fileName =  %fontdir @ %pngdir @ %name SPC %size @ ".png";
    importCachedFont( %name,  %size, %fileName, %weight,  0);
}

So the call would look something like this:
   loadCustomFont( "Seabird SF", 80, 0 );


 
Notes/issues:
 *Creating "Baltic" versions of any font seems to crash the engine (TGB 1.5.0 anyway)
 *You may need to edit the weight value if you want more space between fonts, I left it at 0.
 *You'll have to create and edit a new font for each font size you want
