This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
guisys:making_new_fonts [2011-06-15 14:51] carsten Augmented and improved the text |
guisys:making_new_fonts [2011-06-15 21:31] carsten Added screenshot that demonstrates activating the new font in the GUI Editor |
||
---|---|---|---|
Line 42: | Line 42: | ||
===== Using the newly created font ===== | ===== Using the newly created font ===== | ||
- | Your font is now ready to be used in a GUI. Its name always begins with ''Fonts/'', followed by the previously chosen font name. In our example above, the font name is ''Fonts/Segoe''. | + | {{ :fontwizard:new_font_gui_editor.png?|Activate the new font in the GUI Editor}} Your font is now ready to be used in a GUI. Its name always begins with ''Fonts/'', followed by the previously chosen font name. In our example above, the font name is ''Fonts/Segoe''. |
In the GUI Editor, enter the font name into the appropriate field of the window that should use the font. | In the GUI Editor, enter the font name into the appropriate field of the window that should use the font. | ||
- | Alternatively, if you edit the associated GUI script manually, just write | + | Alternatively, if you edit the GUI script manually, just add |
<code=lua> | <code=lua> | ||
self:set("font", "Fonts/Segoe"); | self:set("font", "Fonts/Segoe"); | ||
</code> | </code> | ||
- | in the appropriate ''OnInit()'' function of the GUI window that should use the new font. | + | to the appropriate ''OnInit()'' function to use the new font. |