Difference between revisions of "SHIP:Fonts"

From Serious Documentation
Jump to: navigation, search
(References)
(References)
Line 38: Line 38:
  
 
== References ==
 
== References ==
* <ext>http://lwp.interglacial.com/appf_01.htm ::A good codepoint table.</ext>
+
* <ext>http://lwp.interglacial.com/appf_01.htm ::A good codepoint table, courtesy of Sean M. Burke</ext>

Revision as of 08:47, 28 November 2012

Font Resources

Fonts are instantiated in the Resources area.

Font Families

The first step in making a font available to text within the SHIP GUI is to import a font file and declare what characters from that font file your GUI needs to have available. SHIPTide understands True Type fonts, normally files with a ".ttf" suffix in most operating systems.

The fontfamilyinfo node in the resources area holds this information. You can add a font family into SHIPTide a number of ways:

  • With the resources node) selected, Add New->fontfamilyinfo}},
  • Use the File->import media wizard
  • Drag a .ttf file from your OS desktop anywhere into SHIPTide

An example fontfamilyinfo node might look like this:

Example fontfamilyinfo Node

In this example, the fBigNumbers font uses the Square721BT.ttf True Type font file. It also includes the following codepoints (16-bit unicode characters):

Codepoint(s) Character(s)
0x20..0x46 ASCII " " through capital "F", including "0" to "9"
0x78 ASCII "x"
0xB0 The degrees symbol (°)
0xB1 The plus/minus symbol (±)

This range gives us the complete hex digit set, plus most symbols including degrees, as well as the lower case "x" so that hex numbers like "0x50" can be displayed.

Font Defaults

Font Overrides and Selection

References