Fonts: Difference between revisions

From OpenMW Wiki
Jump to navigation Jump to search
(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...")
 
No edit summary
Line 3: Line 3:
Unlike vanilla Morrowind, OpenMW directly supports TrueType (.ttf) fonts. This is the recommended way to create new 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.
* Delete the original magic cards .fnt file (from your Data Files/Fonts directory).
* Open resources/mygui/openmw_font.xml in your OpenMW installation.
* 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:
* Add a Resource element for the new font. You can use the existing one for DejaVuLGCSansMono.ttf as a template. Some important values:

Revision as of 10:55, 29 May 2014

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