Neverwinter Nights 2: Change UI Font

Acknowledgements

Thanks to Geshi for creating the Neverwinter Nights 2 Japanese font and providing a readme as the mod description.
Credit also to rjshae for replying to a similar inquiry by highlighting Geshi's font mod.

Notes

  • The game references fonts that are in its program files, not what's installed in Windows.
  • I don't know if other font file formats work with the game.

Requirements

  • Font of choice (TTF, or TrueType, font format)
  • Plain text editor

Applying the Tweak

  1. Navigate to %UserProfile%\My Documents\Neverwinter Nights 2\ui\default
  2. If fontfamily.xml doesn't already exist there, download and save it.
  3. Open fontfamily.xml.
  4. Modify "NWN2_Main.ttf" and its variants to reflect the font name you wish to replace with. The game uses regular, italic, bold, and bold italic versions of the font abbreviated as "b", "i", and "bi". If your font is missing those variants, just substitute with regular or bold, whatever you prefer.
  5. Save fontfamily.xml and exit.
  6. Navigate to your Neverwinter Nights 2 installation directory. Go to UI\default\fonts and paste copies of the new font there. Ensure the font names match the references in fontfamily.xml.
  7. Open Neverwinter Nights 2 to test the change.

Troubleshooting

"There's missing text!"
  • Do the fonts in your Neverwinter Nights 2/UI/default/fonts match what's in your Documents/Neverwinter Nights 2/UI/default/fontfamily.xml?
  • Try deleting fontfamily.xml in your Documents directory. This will force the default fontfamily.xml in the game program files to take hold. If there's missing text still, you need to restore the default NWN2 fonts.
  • Do the font extensions match the references? You may need to enable file extensions within Windows Explorer to see this.
  • Scale down the font size. If text exceeds the dimension of its bounds, the game engine removes the entire span of text.
"The font size is too small!"
  • Change pointsize=12 or point-size=14 to something bigger. 
"Ever since I changed my fontfamily.xml, the game has been crashing!"
  • Create a copy of your fontfamily.xml; then, replace it with the original and start again. The base fontfamily.xml can be downloaded from the aforementioned link or copied from your Neverwinter Nights 2 program files directory, in UI/default/
  • Troubleshoot missing quotation punctuation or other fault in formatting. This tends to take longer (in my opinion, as an amateur web designer since middle school) than starting over.

Comments