mtr_addon:nte:js:resources
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
mtr_addon:nte:js:resources [2024/02/08 05:30] – Wording adjustment lx862 | mtr_addon:nte:js:resources [2024/02/08 05:35] (current) – Minor fixes lx862 | ||
---|---|---|---|
Line 58: | Line 58: | ||
static Resources.readFont(path: | static Resources.readFont(path: | ||
</ | </ | ||
- | * Load a custom TTF or OTF font file as an AWT Font.// | + | * Load a custom TTF or OTF font file as an AWT Font. |
+ | * //Note: Due to the way Java and Minecraft Resource Pack works, new temporary font files are generated on your disk every time you call this function. If you find yourself running out of disk space during the development, | ||
* <code javascript> | * <code javascript> | ||
static Resources.getFontRenderContext(): | static Resources.getFontRenderContext(): | ||
Line 83: | Line 84: | ||
| '' | | '' | ||
| '' | | '' | ||
- | | '' | + | | '' |
| '' | | '' | ||
| '' | | '' |
mtr_addon/nte/js/resources.1707370230.txt.gz · Last modified: 2024/02/08 05:30 by lx862