Difference between revisions of "FONTS"

From 3DGE Wiki
Jump to: navigation, search
(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==
+
=EXAMPLES=
  
The following is an example of a complete font entry:
+
{| 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>
 +
|}
  
<TABLE WIDTH=95% BORDER=1 CELLSPACING=0 CELLPADDING=3 FRAME="box" BGCOLOR="#C2D6D6" >
+
<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>
<TR><TD>
+
 
<FONT SIZE=2>
+
 
[FOO]
+
----
<br>TYPE=PATCH;  ''// PATCH is the only type so far''
 
<br>PATCHES=FONTP33("!"),  ''// put a character in "" quotes''
 
<br> ;;;;;;;;FONTP65("A":"Z");  ''// use : for a range of characters''
 
<br>MISSING_PATCH=FONTP00;
 
<br>
 
</FONT>
 
  
  ''Where the FONTPxx names above are the patch names.  For ranges it
+
{{DDF}}
  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.''
 
</TD></TR>
 
</TABLE>
 

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:


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