OBD:TSFT: Difference between revisions

From OniGalore
Jump to navigation Jump to search
mNo edit summary
m (wording, much better definition links)
Line 17: Line 17:
{{OBDtr| 0x004 | lev_id  |FFFF00| 01 00 00 00 | 0    | level 0 }}
{{OBDtr| 0x004 | lev_id  |FFFF00| 01 00 00 00 | 0    | level 0 }}
{{OBDtr| 0x008 | dead[6]  |FFFFFF| AD DE      | dead | not used }}
{{OBDtr| 0x008 | dead[6]  |FFFFFF| AD DE      | dead | not used }}
{{OBDtr| 0x00E | int16    |00FF00| 07 00      | 7    | font size (in points) }}
{{OBDtr| 0x00E | int16    |00FF00| 07 00      | 7    | font size in points }}
{{OBDtr| 0x010 | int32    |FFFFFF| 01 00 00 00 | 1    | font option; the following options are possible:
{{OBDtr| 0x010 | int32    |FFFFFF| 01 00 00 00 | 1    | font option; the following options are possible:


Line 24: Line 24:
:2 - ''italic font''
:2 - ''italic font''
}}
}}
{{OBDtr| 0x014 | int16    |FFFFFF| 09 00      | 9    | [[Wikipedia:Ascender|ascender]] height }}
{{OBDtr| 0x014 | int16    |FFFFFF| 09 00      | 9    | [[wikt:ascender#Noun|ascender]] height }}
{{OBDtr| 0x016 | int16    |FFFFFF| 02 00      | 2    | [[Wikipedia:Descender|descender]] height }}
{{OBDtr| 0x016 | int16    |FFFFFF| 02 00      | 2    | [[wikt:descender#Noun|descender]] height }}
{{OBDtr| 0x018 | int16    |FFFFFF| 02 00      | 2    | [[Wikipedia:Leading|leading]] height }}
{{OBDtr| 0x018 | int16    |FFFFFF| 02 00      | 2    | [[wikt:leading#Noun_2|leading]] height }}
{{OBDtr| 0x01a | int16    |FFFFFF| 02 00      | 2    | ignored }}
{{OBDtr| 0x01a | int16    |FFFFFF| 02 00      | 2    | ignored }}
{{OBDtrBK|Room for 256 TSGA links (only the first one is typically used for Western languages)}}
{{OBDtrBK|Room for 256 TSGA links (only the first one is typically used for Western languages)}}
Line 33: Line 33:
{{OBDtr| ...  | ...      |00FFFF|    ...    | ...  | ... }}
{{OBDtr| ...  | ...      |00FFFF|    ...    | ...  | ... }}
{{OBDtr| 0x418 | link    |00FFFF| 00 00 00 00 | 0    | unused }}
{{OBDtr| 0x418 | link    |00FFFF| 00 00 00 00 | 0    | unused }}
{{OBDtrBK|Pixel data for the glyphs (8-bit intensities stored as 32-bit integers)}}
{{OBDtrBK|Pixel data for the glyphs (8-bit intensities for four pixels at a time, stored as 32-bit integers)}}
{{OBDtr| 0x41C | int32    |FF00FF| 4F 0E 00 00 | 3663 | array size (one element has a length of 4 bytes) }}
{{OBDtr| 0x41C | int32    |FF00FF| 4F 0E 00 00 | 3663 | array size (one element has a length of 4 bytes) }}
{{OBDtr| 0x420 | int32    |C0C0C0| FF FF FF FF | 255,255,255,255 | the first 4 pixels (all white) of the first used glyph }}
{{OBDtr| 0x420 | int32    |C0C0C0| FF FF FF FF | 255,255,255,255 | the first 4 pixels (all white) of the first used glyph }}

Revision as of 20:02, 19 February 2022

ONI BINARY DATA
TSFL << Other file types >> TSGA
TSFT : Font
switch to XML:TSFT page
Overview @ Oni Stuff
OBD.png


Tsft a.gif


Tsft m.gif


Tsft e.gif


Offset Type Raw Hex Value Description
0x000 res_id 01 03 00 00 3 00003-.TSFT
0x004 lev_id 01 00 00 00 0 level 0
0x008 dead[6] AD DE dead not used
0x00E int16 07 00 7 font size in points
0x010 int32 01 00 00 00 1 font option; the following options are possible:
0 - normal font
1 - bold font
2 - italic font
0x014 int16 09 00 9 ascender height
0x016 int16 02 00 2 descender height
0x018 int16 02 00 2 leading height
0x01a int16 02 00 2 ignored
Room for 256 TSGA links (only the first one is typically used for Western languages)
0x01C link 01 04 00 00 4 link to 00004-.TSGA (glyph array for character codes 0-255)
0x020 link 00 00 00 00 0 unused
... ... ... ... ...
0x418 link 00 00 00 00 0 unused
Pixel data for the glyphs (8-bit intensities for four pixels at a time, stored as 32-bit integers)
0x41C int32 4F 0E 00 00 3663 array size (one element has a length of 4 bytes)
0x420 int32 FF FF FF FF 255,255,255,255 the first 4 pixels (all white) of the first used glyph
... ... ... ... the rest of the pixel data


ONI BINARY DATA
TSFL << Other file types >> TSGA
TSFT : Font
Global file