User Tools

Site Tools


en:tutorials:nuklear_font_management

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:tutorials:nuklear_font_management [2020/05/20 19:59 (7 days ago)]
zgcrowno created
en:tutorials:nuklear_font_management [2020/05/26 15:34 (39 hours ago)] (current)
zgcrowno [Config]
Line 14: Line 14:
 Here, FontSize, GlobalAlpha and SegmentCount override some of ORX's default Nuklear settings, and FontList is the list of all fonts (named by you) you wish to use in your project. After FontList, you need to declare attributes named after //each// of the fonts included in FontList; each of these must contain two elements, the first of which is the path to the TrueType font you wish to use, and the second of which is the font size you wish to set for that font. Here, FontSize, GlobalAlpha and SegmentCount override some of ORX's default Nuklear settings, and FontList is the list of all fonts (named by you) you wish to use in your project. After FontList, you need to declare attributes named after //each// of the fonts included in FontList; each of these must contain two elements, the first of which is the path to the TrueType font you wish to use, and the second of which is the font size you wish to set for that font.
  
-Note that if you wish to trim the file path sizes of these TrueType fonts, all you need to do is add a Nuklear ​attribute to your resource section, as follows:+Note that if you wish to trim the file path sizes of these TrueType fonts, all you need to do is add a "​Font" ​attribute to your resource section, as follows:
 <code INI> <code INI>
 [Resource] [Resource]
-Nuklear ​= ../​data/​fonts1 # ../​data/​fonts2+Font = ../​data/​fonts1 # ../​data/​fonts2
 </​code>​ </​code>​
 where "​../​data/​fonts1"​ and "​../​data/​fonts2"​ are folders in which any of the TrueType fonts you wish to use can be found. where "​../​data/​fonts1"​ and "​../​data/​fonts2"​ are folders in which any of the TrueType fonts you wish to use can be found.
en/tutorials/nuklear_font_management.1590004745.txt.gz ยท Last modified: 2020/05/20 19:59 (7 days ago) by zgcrowno