#60230 - alangerow - Tue Nov 08, 2005 7:13 am
I've been having problems using consoleInit with a custom font. I haven't found any examples of how to do this, and my tests have all ended with nothing usable. Does anyone have an example on how to use this?
edit: nevermind, I went ahead and decided to just do it with tiles. Though, I am curious for how consoleInit is supposed to work.
#60294 - dovoto - Tue Nov 08, 2005 6:57 pm
I have no idea how to use it :)
_________________
www.drunkencoders.com
#60304 - ApM - Tue Nov 08, 2005 9:00 pm
The console stuff is tied in to newlib, so that after it's initialized, you can do the standard C printf stuff. Kind of neat. The font data itself is in 16-colour (not 16-bit; the "bitDepth" parameter is misleading) format, just like you'd copy the tiles into VRAM.
#60328 - Phan - Wed Nov 09, 2005 6:36 am
#60332 - alangerow - Wed Nov 09, 2005 6:50 am
Ooooooh, THAT'S how you do it. :) Thank you so much. I see what I was neglecting to do. Definitely going to save this for reference later. I solved the problem with tiled backgrounds, which actually gave me some nice control that I wanted over the console, but it's slower. This will come in very handy.
Awesome. :)
#65260 - mookits - Sun Jan 01, 2006 5:01 pm
Hi,
Kind of new to this. Tried your custom font demo and got two white screens.
Have sucessfully managed to get my own code running in the DS but this sort of problem does seem to crop up alot.
Am I missing something?
#65403 - Phan - Mon Jan 02, 2006 10:15 pm
mookits wrote: |
Hi,
Kind of new to this. Tried your custom font demo and got two white screens.
Have sucessfully managed to get my own code running in the DS but this sort of problem does seem to crop up alot.
Am I missing something? |
What are you using to run the code?
#65427 - mookits - Tue Jan 03, 2006 4:00 am
I am using FlashMe and a SuperCard SD to GBA converter.
#65728 - Phan - Thu Jan 05, 2006 8:06 am
mookits wrote: |
I am using FlashMe and a SuperCard SD to GBA converter. |
Hmm. That's odd. I don't have a SC so I don't know what to tell you. I know my code works on Flash carts, and gbamp.
#65734 - mookits - Thu Jan 05, 2006 10:21 am
Are you using the latest version of libnds?
I take it that different flash carts boot the processors in different ways and this may be a problem?
#66408 - mookits - Tue Jan 10, 2006 1:50 pm
I got it working. I was putting the .nds file on the Supercard without the loader - I needed to put the nds.gba file on but renamed as .nds.
Question about the cutsom font demo to get back to the subject at hand - does the console restrict the font size?