I've been trying for days now to simple load a font other than the default. and have run into problem after problem, including bugs in the library itself.
Right now the problem I'm facing is three-headed, first, you need extra data to load the font, which is not given (I'm simply trying to load one of the fonts to that come with devkitpro, somethingsomething20.nxfont). The information required is: the character size, the first ASCII character (in the default font this is 0), and the number of characters (in the default font this is 256).
Firstly, when I just keep the default font values and load the new font with them, it's all messed up. That isn't surprising. The fonts say nothing about the other information so I guessed.
If I put 20 for the width and height of the characters (makes sense right? It's got 20 in the name!). And keep the other values at 0 and 256, because I have no idea what else they could be or how I could find out, I get a DataAbort error (2168-0002).
My theries to the problem are:
1.nxfiles cannot be loaded directly and need to be bin files for libnx to use them.
2. I am misunderstanding what 'title x' and 'title y' mean and they are in fact not the width and height of characters.
3. The characters are only size 20 in one axis
4. There are a different number of characters in these fonts compared to the default one.
Unfortunately all of these theories are either too niche to Google, or I have no idea how to determine a fix (because I just don't know the data for the font, I am just guessing, nor do I know how to find it out)
Any help would be much appreciated, this has really been hurting my head for a long time now.
p.s. How on earth does the makefile turn data into a header? I've never seen that done before, is that like just something you can do to compile data directly into a program!?!?!
Right now the problem I'm facing is three-headed, first, you need extra data to load the font, which is not given (I'm simply trying to load one of the fonts to that come with devkitpro, somethingsomething20.nxfont). The information required is: the character size, the first ASCII character (in the default font this is 0), and the number of characters (in the default font this is 256).
Firstly, when I just keep the default font values and load the new font with them, it's all messed up. That isn't surprising. The fonts say nothing about the other information so I guessed.
If I put 20 for the width and height of the characters (makes sense right? It's got 20 in the name!). And keep the other values at 0 and 256, because I have no idea what else they could be or how I could find out, I get a DataAbort error (2168-0002).
My theries to the problem are:
1.nxfiles cannot be loaded directly and need to be bin files for libnx to use them.
2. I am misunderstanding what 'title x' and 'title y' mean and they are in fact not the width and height of characters.
3. The characters are only size 20 in one axis
4. There are a different number of characters in these fonts compared to the default one.
Unfortunately all of these theories are either too niche to Google, or I have no idea how to determine a fix (because I just don't know the data for the font, I am just guessing, nor do I know how to find it out)
Any help would be much appreciated, this has really been hurting my head for a long time now.
p.s. How on earth does the makefile turn data into a header? I've never seen that done before, is that like just something you can do to compile data directly into a program!?!?!