Difference between revisions of "Xtf"
From xboxdevwiki
m |
(Ascender did not even exist at the time;; We already link to wikipedia which contains these non-technical, non-xbox details;; XTF is triangle lists, not strips) |
||
Line 1: | Line 1: | ||
− | |||
− | |||
XTF is a font file format used in the [[Dashboard]]. | XTF is a font file format used in the [[Dashboard]]. | ||
It became famous for being [[Exploits#Font hacks|exploited]]. | It became famous for being [[Exploits#Font hacks|exploited]]. | ||
+ | |||
== Dashboard fonts == | == Dashboard fonts == | ||
− | The | + | The fonts were designed by [[Wikipedia:Steve Matteson|Steve Matteson]] for use in the Xbox [[Dashboard]] as well as for promotional materials. |
− | + | The XTF versions of these fonts contain 7365 glyphs each. | |
=== Xbox.xtf === | === Xbox.xtf === | ||
+ | |||
+ | [[File:Xbox-dashboard-font-specimen.png|thumb|200px|Xbox Font Specimen]] | ||
A monospace font. | A monospace font. | ||
Line 29: | Line 30: | ||
** 4 byte (Offset of glyph in file) | ** 4 byte (Offset of glyph in file) | ||
* For each GLYPHSET range | * For each GLYPHSET range | ||
− | ** For each glyph in this range (stored as a triangle | + | ** For each glyph in this range (stored as a triangle list) |
*** 2 byte (Index count) | *** 2 byte (Index count) | ||
*** 2 byte (Vertex count) | *** 2 byte (Vertex count) |
Revision as of 20:10, 12 September 2017
XTF is a font file format used in the Dashboard. It became famous for being exploited.
Dashboard fonts
The fonts were designed by Steve Matteson for use in the Xbox Dashboard as well as for promotional materials.
The XTF versions of these fonts contain 7365 glyphs each.
Xbox.xtf
A monospace font.
XBox Book.xtf
File format
- 4 byte (magic)
- 4 byte (length prefix for following string)
- zero-terminated string with given buffer length (font-name)
- GLYPHSET (List of supported glyphs)
- For each cGlyphsSupported:
- GLYPHMETRICSFLOAT (Metrics for each glyph)
- 4 byte (Offset of glyph in file)
- For each GLYPHSET range
- For each glyph in this range (stored as a triangle list)
- 2 byte (Index count)
- 2 byte (Vertex count)
- For each index:
- 2 byte (Vertex index)
- For each vertex:
- 4 byte float (X-coordinate)
- 4 byte float (Y-coordinate)
- For each glyph in this range (stored as a triangle list)
[FIXME]