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...")
 
(Wipe out the page, RTD it is)
 
(9 intermediate revisions by 4 users not shown)
Line 1: Line 1:
'''TrueType fonts'''
Font support information has moved to our official documentation on [https://openmw.readthedocs.io/en/master/reference/modding/font.html ReadTheDocs].
 
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

Latest revision as of 15:31, 30 December 2018

Font support information has moved to our official documentation on ReadTheDocs.