Changes between Initial Version and Version 1 of Font_Builder2


Ignore:
Timestamp:
Mar 10, 2014, 11:31:53 AM (10 years ago)
Author:
sanderd17
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Font_Builder2

    v1 v1  
     1Font Builder 2 is the new iteration of the old [wiki:Font_Builder Font Builder].
     2
     3This font builder is a python script that converts font files into pre-rendered glyph collections to be used in the game. This means fonts have to be pre-rendered for all combinations of styles (bold, italic, different sizes ...) that are used in the game. These glyph collections get a certain name that can be used in the GUI system.
     4
     5Fonts are compiled by just running the [[http://trac.wildfiregames.com/browser/ps/trunk/source/tools/fontbuilder2|fontbuilder.py]] script with python2.
     6
     7== Adding new fonts or replacing fonts ==
     8
     9To add a new font, you place the font files in the [[http://trac.wildfiregames.com/browser/ps/trunk/binaries/data/tools/fontbuilder/fonts|binaries/data/tools/fontbuilder/fonts]] directory. Then you modify the [[http://trac.wildfiregames.com/browser/ps/trunk/source/tools/fontbuilder2/fontbuilder.py|fontbuilder.py]] script to render those fonts. The font variations are controlled near the end of the file. Note that, unless you're redesigning the entire GUI, the names in the fonts array still need to contain all names used in the GUI files.
     10
     11== Adding new glyphs to existing fonts ==
     12
     13Not all glyphs available in the fonts are pre-rendered. This is to save space for those glyphs we don't need anyway. The glyphs that get rendered are in the [[http://trac.wildfiregames.com/browser/ps/trunk/source/tools/fontbuilder2/charset.txt|charset.txt]] as a table with the Unicode code point, the actual symbol, and the name of the symbol (see [[http://www.utf8-chartable.de/unicode-utf8-table.pl?utf8=-|the unicode chartable]]).
     14
     15