Difference between revisions of "FONTS"

From 3DGE Wiki
Jump to: navigation, search
(created FONTS)
(No difference)

Revision as of 01:47, 8 November 2014

FONTS

Stored in fonts.ddf file or in the DDFFONT data lump.

Fonts.ddf allows you to define fonts (the set of character images for drawing text).Names should be descriptive of what the font is and/or when it is used.

COMMANDS

The commands used for font entries are as follows:


COMMANDTYPEDESCRIPTION
TYPE[string] PATCH is the only type so far.
PATCHES[string] What patch will be used for a character or range of characters. Put a character in "" quotes or use : for a range of characters e.g. FONTP33("!") or FONTP65("A":"Z")
MISSING_PATCH[string] Optional. The patch to be used when we're missing a character.


EXAMPLES

The following is an example of a complete font entry:

[FOO]
TYPE=PATCH; // PATCH is the only type so far
PATCHES=FONTP33("!"), // put a character in "" quotes
 ;;;;;;;;FONTP65("A":"Z"); // use : for a range of characters
MISSING_PATCH=FONTP00;

 Where the FONTPxx names above are the patch names.  For ranges it
 is the first patch, and should end with digits in order for EDGE
 to work out the other patches properly (FONTP66 will be "B", etc).
 The missing patch is optional.  Having a patch for a space (" ")
 is also optional.