3.1 D3F Format Specification

Offset  Size    Description
------  ------  -----------
0       4      Magic number: "D3TF"
4       2      Version (currently 1)
6       2      Texture width (pixels)
8       2      Texture height (pixels)
10      1      Cell width (pixels)
11      1      Cell height (pixels)
12      2      Reserved
14      2      Number of glyphs (typically 256)
16      2      Glyph entry size (typically 16)
18      6      Reserved
24      N      Glyph table (N = num_glyphs × glyph_entry_size)
24+N    M      Texture data (M = tex_width × tex_height × 2 for ARGB1555)