A new feature was added in update 50.80, expanding the total number of font-types that can be used in the game's UI, adding 80 extra font-type slots to the existing 8 (as defined in Fallout.ini).
Essentially, this enables installing custom fonts easily, safely, without overwriting the default fonts and without tampering with any INI files.
Note that this should be considered an advanced feature and is mostly intended to be used by modders developing user interface mods.
Extra fonts may be installed in one of two methods:
Method 1 (recommended):
Adding a plain text file (MyModName.txt) to \data\NVSE\plugins\xfonts
The fonts are to be listed in the file and formatted as follows:
<Font Number>=<Path to FNT file>
- The font number may range from 10 to 89.
- The file path should be relative to the data folder.
- Multiple fonts may be listed in a single file.
- When building the XML file, these font numbers can be used in the <font></font> property.
This file (along with the font's art files) should be included in the mod's installation package when released. The file's folder structure should be preserved (NVSE\plugins\xfonts\MyModName.txt).
Calling SetFontFile via a script, during runtime. Using this method is generally less recommended. In the case where a new font is installed for an already rendered text element, there will be no visual changes until the element is re-rendered (closed and re-opened).
Edited by jazzisparis, 16 December 2017 - 01:04 AM.