Font Data
From NFBSP
Font data files have only two basic structures: cellsize and character bounding boxes.
[edit]
Cell Size
Appears on the very first line of the file:
cellsize <width> <height>
Example:
cellsize 10 30
Width and height are given in pixels and lays a grid over the targeted .PNG in which to extract textures from.
[edit]
Characters
Following cellsize, there is 256 of these starting at 0 and counting up to 255:
<index> <width> <height> <x> <y>
Example:
0 7 23 0 0 1 7 23 23 0 2 7 23 46 0 3 7 23 69 0
Width and height define the bounding box around the character. X and Y specify the position of the bounding box (upper-left corner) from (0, 0) of the font image.
