table of contents
CUBE2FONT(1) | cube2font Manual | CUBE2FONT(1) |
NAME¶
cube2font - Utility program designed to create font bitmaps for Cube Engine gamesSYNOPSIS¶
cube2font infile outfile outborder[:inborder] pad offset advance charwidth charheight texwidth texheight [spacewidth spaceheight texdir]DESCRIPTION¶
cube2font is a utility program designed to create font bitmaps for Cube Engine games, it works by taking a Truetype font and building it into a set of coordinates in an image. cube2font is an improved version of the previous TTF2Font, supporting a much larger range of characters. The program outputs one or more PNG images containing a grid of characters, so-called "texes", and an accompanying config file in plaintext, which lists the character coordinates in the images.PARAMETERS¶
- infile
-
- outfile
- Sets the font name in the config file, and is also used as an output filename template: A number and the .png extension will be appended to the texes, and a .cfg extension to the coordinate file.
- outborder
-
- inborder
-
- pad
-
- offset
-
- | A| B|
- advance
-
- |A |B |
- charwidth
-
- charheight
-
- texwidth
-
- texheight
-
- spacewidth
-
- spaceheight
-
- texdir
-
EXAMPLES¶
cube2font Play-Bold.ttf play 4 15 1 1 54 54 512 512 0 0 fonts/
Generates a font named play with a 4
pixel black border, an additional 15 pixels of space around characters, one
pixel of extra spacing at both sides when displayed ingame, a character size
of 54x54 pixels, a tex size of 512x512 pixels, a 23 pixels wide standard space
character, a 71 pixels high standard vertical line separation, and the font
path set as fonts/
This would normally generate the files
play.cfg
play0.png
play1.png
play2.png
The above values are used for the base font in the cube2 game Red Eclipse.
cube2font default.ttf default 3 19 1 1 49 49 512 512 32 64 packages/fonts/
This generates the default font for the cube2
game Sauerbraten.
AUTHORS¶
cube2font was created by Lee "eihrul" Salzman. This manual page was written by Martin Erik Werner2011-12-26 |