This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
en:tutorials:nuklear_font_management [2020/05/20 12:59 (4 years ago)] – created zgcrowno | en:tutorials:ui:nuklear_font_management [2020/08/31 09:34 (4 years ago)] (current) – ↷ Links adapted because of a move operation 40.77.167.199 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Nuklear Font Management ====== | ====== Nuklear Font Management ====== | ||
- | This article assumes you have already [[en: | + | This article assumes you have already [[en: |
===== Config ===== | ===== Config ===== | ||
Somewhere within your config files, you will need to add a section like the following: | Somewhere within your config files, you will need to add a section like the following: | ||
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 | + | Note that if you wish to trim the file path sizes of these TrueType fonts, all you need to do is add a " |
<code INI> | <code INI> | ||
[Resource] | [Resource] | ||
- | Nuklear | + | Font = ../ |
</ | </ | ||
where " | where " |