FONTS

From 3DGE Wiki
Jump to: navigation, search

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

//Font Entry
[FOO]
TYPE = PATCH;
FIRST= PATCHES=FONTP33("!"), // put a character in "" quotes ;
FONTP65("A":"Z"); // use : for a range of characters;
MISSING_PATCH=FONTP00;
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.



Doom Definition Files
DDFlogo.gif