The font is used to display every text and numbers in the game, excluding the ones that are on textures. Font in Serious Engine 3 are in .fnt extension, but that does not mean you can simply open any of these fonts in the editor, or put them in folder so they are visable in game. Serious Engine 3 only reads fonts that have been converted into the game with an editor (I actually wonder if that's because of the official signature which editor creates with the font file, or is it because of coding system in the font). Today, I'm gonna show you how to convert existing font in the editor and edit it as you like, so you can then use it in Serious Engine 3 games!
Font File Creation
First, you have to create a new font file in the editor, just like you create anything else. After doing that you switch to the Font tab. We'll do our stuff there. You will see a lot of options, I'm gonna explain these later. What is most important is the way you load the existing font into the editor, as both Serious Sam HD editor, and Serious Sam 3 editor have different ways of doing that!
In Serious Sam HD editor you have to install font into your Windows system first, because the game reads all the fonts from the Fonts directory. To load the font you simply have to change the name of the font in the Name option to the one you want to use.
In Serious Sam 3, the way is a lot easier, as you only have to browse for the font. That means it can be placed anywhere on the hard drive.
After loading the font, you can change its options as you like. Couple of them look like they have been just copied from any text editor, like Weight, Style or Size. I do not recommend to change Rendering option (due to it's incompatibility on some systems), or marging options, as they going to mess up with some characters in most cases.
You can even work on each character separately or even add substitute fonts if you wish to do so.
There are also some useful options in the Instance tab, like color of the font or its shadow, but they are edited inside of the database files, because these changes won't save with the font file itself. For example, you can change these options while making your own HUD, as they are all displayed there as you load the font itself to the file, and they save inside HUD database file.
Before using your font anywhere, you have to close the font editor first!
After you are done with changing the options of your font, you have to use GenereteFont option on the right side of the editor. Now, your work should appear in the middle of the screen. If you like it, save the font to the file. Now you can use it all the way you want! If you still want to change something, remember to click GenerateFont each time you do so, and save the file again.
Examples of Font usage
Now, let's see some examples of where we can use our new custom font!
The HudParams.rsc file, which we can find in Databases folder of Serious Sam 3 or Serious Sam HD is the file where we can set up most of the HUD options. Changing the font there will change the font of HUD as it displays numbers (health, armor, ammunition), subtitles, and anything else releated to HUD. Here, you can change the options mentioned by me earlier (Instance tab).
The Menualette.rsc file, which we can find in Databases folder of Serious Sam 3 or Serious Sam HD is the file where we can set up most of the Main Menu and Netricsa options. Changing the font there will change the font of all text displayd in main menu, and Netricsa. Here, uou can change the options mentioned by me earlier (Instance tab). Here we don't have one, but 12 of fonts! You can change each with another font, which means you can use total of 12 custom fonts (read the font template name to see where the font is used for).