Fonts

From OpenMW Wiki
Revision as of 10:55, 29 May 2014 by Scrawl (talk | contribs)
Jump to navigation Jump to search

TrueType fonts

Unlike vanilla Morrowind, OpenMW directly supports TrueType (.ttf) fonts. This is the recommended way to create new fonts.

  • Delete the original magic cards .fnt file (from your Data Files/Fonts directory).
  • Open resources/mygui/openmw_font.xml in your OpenMW installation.
  • Add a Resource element for the new font. You can use the existing one for DejaVuLGCSansMono.ttf as a template. Some important values:
name="Magic Cards"
<Codes> specifies which glyphs are included in the font texture. 
For international glyphs, you might need to add a few more. You can check the code for a glyph in a font editor (e.g. FontForge)

TODO: Add examples