FONTDEFS

From ZDoom Wiki

Jump to: navigation, search

This is lump used to define custom fonts. There are three styles of definitions to be aware of in defining your FONTDEFS lump.

Contents

"DOOMFONT"

The standard message font is called "Smallfont" or "Doomfont" in ACS. You can't replace the smallfont as a whole; the internal version of it is the font with the highest priority and the only way to override it is to replace the STCFN*** lumps. However, you can use this example as a guide to creating your own fonts.

   FONTNAME
   {
       Template CFONT%03d
   }

Where "FONTNAME" and "CFONT" are names appropriate to your own project. Template means what the name implies: It's used to create the names for the individual lumps. Also, lower case characters are possible; just add the STCFN*** lumps for the lower case characters and they will be used automatically, with the follwoing ranges:

A = 65 Z = 90

a = 97 z = 122


** Thanks to Graf Zahl for the information

"STATUSFONT"

This font only needs to contain the characters you need to print the health and armor display.

   STATUSFONT
   {
       0 STTNUM0
       1 STTNUM1
       2 STTNUM2
       3 STTNUM3
       4 STTNUM4
       5 STTNUM5
       6 STTNUM6
       7 STTNUM7
       8 STTNUM8
       9 STTNUM9
       % STTPRCNT
       / STTSLASH
       - STTMINUS    
       NOTRANSLATION 109	// don't touch the shadow color!
   }

NOTRANSLATION excludes certain palette indices from being colorized. NOTRANSLATION is not implemented for regular fonts - only for ones with explicit patches.

** Thanks to Graf Zahl for the information

"INDEXFONT"

The INDEXFONT is just a leftover definition that isn't used. To replace the smaller numbers that display the ammo count on the right hand side of the stat-bar, simply replace the graphic lumps themselves.

   INDEXFONT
   {
       0 STYSNUM0
       1 STYSNUM1
       2 STYSNUM2
       3 STYSNUM3
       4 STYSNUM4
       5 STYSNUM5
       6 STYSNUM6
       7 STYSNUM7
       8 STYSNUM8
       9 STYSNUM9
       NOTRANSLATION 160
   }

See Also

Personal tools