Fonts.tbl

From FreeSpace Wiki
Revision as of 02:34, 17 January 2015 by Yarn (talk | contribs) (Added documentation of new parameters added in revision 11151)
Jump to: navigation, search
This feature requires FreeSpace Open

Revision information.....

FSO Revision: 11151
Note: Please update the version when the page is updated. If your edit had nothing to do with new code entries then please do not edit the version


The fonts.tbl is a recent addition to the SCP allowing the definition of non-standard fonts. Currently, up to five fonts are supported. The HUD gauges, show-subtitle-text sexp and the fiction viewer can be manually set to any font in fonts.tbl. The rest of the fonts used in FSO (e.g. techroom text) are hardcoded to one of the first three fonts that are parsed.


List of Tables

General Info

  • Begins with #Fonts or #Fiction Viewer
  • Consists of 3-5 entries
  • Ends with #End

$Font:

  • Lists a font file to use.
  • Syntax: String

+Default Special Character Index:

FS2 Open, 3.7.2:
  • Specifies the index of the first special character (e.g., infinity symbol, "match speed" icon) in the font. Must be within the range of 0-249. Does not apply to language entries below that use +Special Character Index:.
  • Syntax: Integer
Note: If this parameter is used with the first font, it will override all uses of +Special Character Index: in strings.tbl.

+Language:

FS2 Open, 3.7.2:
+Special Character Index:

Sample Entry

#Fonts

$Font: font01.vf
$Font: font02.vf
$Font: font03.vf

#End

Sample Entry (Fiction Viewer)

#Fiction Viewer

$File: [text file]
$Font: [font file]

References

  1. "Re: Feature Request: 4th font (especially for fiction viewer)", Hard Light Productions Forums, Hard Light Productions, 24-12-2009. Retrieved on January 28, 2011.