Difference between revisions of "FONTS"
From 3DGE Wiki
(created FONTS) |
(cleaned up!) |
||
Line 2: | Line 2: | ||
'''Stored in fonts.ddf file or in the DDFFONT data lump.''' | '''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. | + | 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. |
<br> | <br> | ||
Line 25: | Line 25: | ||
− | + | =EXAMPLES= | |
− | + | {| width="95%" border="1" frame="box" cellpadding="2" frame="box" BGCOLOR="#FFE4B5" | |
+ | | <font size="2"> //Font Entry <br />[FOO] <br />TYPE = PATCH; <br />FIRST= PATCHES=FONTP33("!"), // put a character in "" quotes ; <br />FONTP65("A":"Z"); // use : for a range of characters; <br />MISSING_PATCH=FONTP00; </font> | ||
+ | |} | ||
− | < | + | <div style="background: #f2e0ce; border: 2px solid #bfb1a3; padding: 0.6em; margin-top: 0.8em;">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.</div> |
− | + | ||
− | + | ||
− | + | ---- | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | {{DDF}} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Latest revision as of 21:54, 29 April 2016
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:
COMMAND | TYPE | DESCRIPTION |
---|---|---|
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 | |
---|---|
Current DDF Types | |
Abandoned DDF TYPES (DOSDoom & EDGE) |