FONT (File Format): Difference between revisions

no edit summary
imported>Jackoalan
imported>Jackoalan
No edit summary
Line 90: Line 90:
| Metroid Prime 3/DKCR
| Metroid Prime 3/DKCR
|}
|}


=== Glyph Entry (Version 2) ===
=== Glyph Entry (Version 2) ===
=== Glyph Entry (Version 4) ===
=== Character Definitions ===
This part of the file defines each character of the font. It starts with a 32-bit count value.


{| class="wikitable"
{| class="wikitable"
Line 149: Line 142:
| u32
| u32
| 4
| 4
| '''Character width'''
| '''Glyph width'''
|-
|-
| 0x22
| 0x22
| u32
| u32
| 4
| 4
| '''Character height'''
| '''Glyph height'''
|-
|-
| 0x26
| 0x26
Line 162: Line 155:
|-
|-
| 0x2A
| 0x2A
| colspan=3 {{unknown|End of character definition}}
| colspan=3 {{unknown|End of glyph definition}}
|}
 
=== Glyph Entry (Version 4) ===
 
{| class="wikitable"
! Offset
! Type
! Size
! Description
|-
| 0x0
| u16
| 2
| '''UTF-16 character'''
|-
| 0x2
| float
| 4
| '''Left UV coordinate'''
|-
| 0x6
| float
| 4
| '''Top UV coordinate'''
|-
| 0xA
| float
| 4
| '''Right UV coordinate'''
|-
| 0xE
| float
| 4
| '''Bottom UV coordinate'''
|-
| 0x12
| u8
| 1
| '''Layer Index'''
<ol start="0">
<li>TXTR Red channel is fill, Green channel is outline</li>
<li>TXTR Blue channel is fill, Alpha channel is outline</li>
</ol>
|-
| 0x13
| u32
| 4
| '''Glyph left padding'''
|-
| 0x17
| u32
| 4
| '''Print head advance'''
|-
| 0x1B
| u32
| 4
| '''Glyph right padding'''
|-
| 0x1F
| u32
| 4
| '''Glyph width'''
|-
| 0x23
| u32
| 4
| '''Glyph height'''
|-
| 0x27
| u32
| 4
| '''Kerning index'''
|-
| 0x2B
| colspan=3 {{unknown|End of glyph definition}}
|}
|}


Anonymous user