Difference between revisions of "Fonts.tbl"

From FreeSpace Wiki
Jump to: navigation, search
(Added documentation of new parameters added in revision 11151)
Line 1: Line 1:
 
{{SCP_table}}
 
{{SCP_table}}
  
{{TableVersion|5751}}
+
{{TableVersion|11151}}
  
 
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|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.  
 
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|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.  
Line 10: Line 10:
 
==General Info==
 
==General Info==
 
*Begins with #Fonts or #Fiction Viewer
 
*Begins with #Fonts or #Fiction Viewer
 +
*Consists of 3-5 entries
 
*Ends with #End
 
*Ends with #End
  
 
===$Font:===
 
===$Font:===
*Lists font files to use.
+
*Lists a font file to use.
 
*Syntax: '''String'''
 
*Syntax: '''String'''
 +
 +
====+Default Special Character Index:====
 +
{{Table372|
 +
*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 [[Fonts.tbl#+Special Character Index:|+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:====
 +
{{Table372|
 +
*Specifies the name of a language.
 +
*Currently used for overriding the value of [[Fonts.tbl#+Default Special Character Index:|+Default Special Character Index:]].
 +
*Syntax: '''String'''
 +
 +
=====+Special Character Index:=====
 +
*Overrides the value of [[Fonts.tbl#+Default Special Character Index:|+Default Special Character Index:]] for this language.
 +
*Syntax: '''Integer'''
 +
}}
  
 
==Sample Entry==
 
==Sample Entry==

Revision as of 02:34, 17 January 2015

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.