Fonts

From OpenMW Wiki
Revision as of 10:44, 29 May 2014 by Scrawl (talk | contribs) (Created page with "'''TrueType fonts''' Unlike vanilla Morrowind, OpenMW directly supports TrueType (.ttf) fonts. This is the recommended way to create new fonts. * Delete the magic cards .fnt...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 magic cards .fnt file.
  • 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