Next: Drawing a font
Up: Font engine
Previous: Font engine
Contents
The datas
The datas of the font are stored in variables of the Ti, with the extension "FONT". One of this variable will describe only one size of font. In consequence, if you want to describe the three Ti-OS fonts, three variables will be necessary.
The format of the variable is quite simple:
- 2B: the size of the variable (as for every variables)
- 2B: the version of description of the font variable format
- 1B: the maximum width of a character
- 1B: the maximum height of a character
- the table of width of character: table of 256 elements of 1B
- the table of picture of character: table of 256 elements of
Bytes
- a string which describe the font (for example !"TI-OS Font 1"!)
- a string of the name of the author (for example !"Me"!)
- the FONT tag: !"FONT
0
xF8"!
2006-02-19