OBD:TSFF: Difference between revisions

From OniGalore
No edit summary
m (applied FontSize template)
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[Main Page]] >> [[OBD:Oni Binary Data|Oni Binary Data]] >> [[OBD:File types|File Types]] >> TSFF File
{{OBD_File_Header | type=TSFF | prev=TRTA | next=TSFL | name=Font Family | family=Interface | align=center}}




<CENTER>[[OBD:TRTA|<==]] <FONT SIZE=5>TSFF File</FONT> [[OBD:TSFL|==>]]<BR>
[[Image:tsff_a.gif]]
<FONT SIZE=2>Font Family - Message File</FONT></CENTER>




All TSFF files are 0 byte files. That means, that Oni will take the information out of the TSFF files of level 0. Below is an example of a TSFF file of level 0.
{{Table}}
 
{{OBD_Table_Header}}
 
|- ALIGN=CENTER VALIGN=TOP
http://www6.fh-eberswalde.de/user/dkriesch/onistuff/images/tsff_a.gif
{{OBDtr| 0x00 | res_id  |FF0000| 01 02 00 00 | 2   | 00002-Tahoma.TSFF }}
 
{{OBDtr| 0x04 | lev_id  |FFFF00| 01 00 00 00 | 0   | level 0 }}
 
{{OBDtr| 0x08 | char[16] |00FF00| AD DE       | dead | unused }}
{| BORDER=1 WIDTH=100% CELLPADDING=2 CELLSPACING=0
{{OBDtr| 0x18 | link    |00FFFF| 01 01 00 00 | 1   | link to [[OBD:TSFL|00001-Roman.TSFL]]; contains a list of line-breaking characters }}
|- ALIGN=CENTER BGCOLOR="#FFDDBB"
{{OBDtr| 0x1C | int32    |FF00FF| 0F 00 00 00 | 15   | array size }}
| WIDTH=15% | <B>Hex</B>
{{OBDtrBK}}
| WIDTH=15% | <B>Translation</B>
{{OBDtr| 0x00 | link    |FFC8C8| 01 03 00 00 | 3   | link to [[OBD:TSFT|00003-.TSFT]] }}
| WIDTH=70% | <B>Meaning</B>
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FF0000" | 01 02 00 00
| 2
| ALIGN=LEFT | 00002-Tahoma.TSFF
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FFFF00" | 01 00 00 00
| 0
| ALIGN=LEFT | level 0
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#00FF00" | AD DE
| dead
| ALIGN=LEFT | not used
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#00FFFF" | 01 01 00 00
| 1
| ALIGN=LEFT | link to 00001-Roman.[[OBD:TSFL|TSFL]]
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FF00FF" | 0F 00 00 00
| 15
| ALIGN=LEFT | 15 packages follow (one package is edged in black)
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#000000"
| COLSPAN=3 | <FONT SIZE=2 COLOR="#FFFFFF">Below follows the first package.</FONT>
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FFC8C8" | 01 03 00 00
| 3
| ALIGN=LEFT | link to 00003-.[[OBD:TSFT|TSFT]]
|}
|}
Vanilla Oni game data typically has only one TSFF file, TSFFTahoma, with the following 15 font variants:
*{{FontSize|70|'''7pt bold''', 7pt regular, ''7pt italic''}}
*{{FontSize|140|'''14pt bold''', 14pt regular, ''14pt italic''}}
*'''10pt bold''', 10pt regular, ''10pt italic''
*{{FontSize|120|'''12pt bold''', 12pt regular, ''12pt italic''}}
*{{FontSize|90|'''9pt bold''', 9pt regular, ''9pt italic''}}
The most recurrent fonts used by Vanilla Oni are:
*'''10pt bold''' - primary font: buttons and dialogs, help/diary, text consoles...
*{{FontSize|120|'''12pt bold'''}} - larger font: combat move pages, headers in text consoles
*{{FontSize|70|7pt regular}} - subtitles, console input, debug messages
*{{FontSize|120|12pt regular}} - in-game prompts (objectives, interactive elements, etc)
Italic variants, at least in the case of TSFFTahoma, are completely unusable because the right side of each glyph is cut off – there is no provision for overlapping glyphs.


To learn about the exact encoding that Oni uses for fonts in various localizations, see [[OBD:Text encoding]].


<HR>
<CENTER>[[OBD:TRTA|<==]] <B>TSFF File</B> [[OBD:TSFL|==>]]</CENTER>
<HR>


{{OBD_File_Footer | type=TSFF | prev=TRTA | next=TSFL | name=Font Family | family=Interface}}


[[Main Page]] >> [[OBD:Oni Binary Data|Oni Binary Data]] >> [[OBD:File types|File Types]] >> TSFF File
{{OBD}}

Latest revision as of 16:30, 18 April 2025

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


Tsff a.gif


Offset Type Raw Hex Value Description
0x00 res_id 01 02 00 00 2 00002-Tahoma.TSFF
0x04 lev_id 01 00 00 00 0 level 0
0x08 char[16] AD DE dead unused
0x18 link 01 01 00 00 1 link to 00001-Roman.TSFL; contains a list of line-breaking characters
0x1C int32 0F 00 00 00 15 array size
First element (black outline)
0x00 link 01 03 00 00 3 link to 00003-.TSFT

Vanilla Oni game data typically has only one TSFF file, TSFFTahoma, with the following 15 font variants:

  • 7pt bold, 7pt regular, 7pt italic
  • 14pt bold, 14pt regular, 14pt italic
  • 10pt bold, 10pt regular, 10pt italic
  • 12pt bold, 12pt regular, 12pt italic
  • 9pt bold, 9pt regular, 9pt italic

The most recurrent fonts used by Vanilla Oni are:

  • 10pt bold - primary font: buttons and dialogs, help/diary, text consoles...
  • 12pt bold - larger font: combat move pages, headers in text consoles
  • 7pt regular - subtitles, console input, debug messages
  • 12pt regular - in-game prompts (objectives, interactive elements, etc)

Italic variants, at least in the case of TSFFTahoma, are completely unusable because the right side of each glyph is cut off – there is no provision for overlapping glyphs.

To learn about the exact encoding that Oni uses for fonts in various localizations, see OBD:Text encoding.


ONI BINARY DATA
TRTA << Other file types >> TSFL
TSFF : Font Family
Interface file