Custom Fonts - 16 x 16 ?

Post Reply
olwildcory723
Posts: 9
Joined: Tue Jan 06, 2009 7:18 am

Custom Fonts - 16 x 16 ?

Post by olwildcory723 » Mon Jan 19, 2009 9:07 am

Couple more questions. I've been playing around with the custom fonts example and I've made some of my own fonts using photoshop and the provided font.bmp. My question though is if all fonts have to be 8x8 pixels or is it possible to have fonts be 16x16? I tried researching it (my main resource is libnds.devkitpro.org) but I couldn't find anything. So if it is possible, how do I do that?

My next question is where are the rest of the function references and things I see in the examples? There have been many things so far as I've gone through the examples that I cannot find on libnds.devkitpro.org. bgUpdate() is one I could not find, as well as in this latest example I wanted to find more on the ConsoleFont (struct I'm assuming) but searching it brings up nothing. Are there other documentation resources out there that I don't know about?

Sylus101
Posts: 179
Joined: Wed Dec 24, 2008 5:08 am

Re: Custom Fonts - 16 x 16 ?

Post by Sylus101 » Tue Jan 20, 2009 6:21 am

I'm not going to be of much help this time around. The full source for libnds is not included but all of the .h files are. If I find a function I need more information on, I often do a "Find in Files" option in Programmers Notepad and see what comes up. The .h files are commented well but if you want to get everything so you can sneak a peak at functions that are only prototyped in the .h files... you can take a peak at the source at http://sourceforge.net/projects/devkitpro/ to see the content of some of the larger functions. This is, of course, the active development site so it's subject to change... ;)

As for 16 X 16 fonts I'm really not sure how that would work. I don't think there is anything "stock" that can handle it. Honestly... I think you'd have to code something from scratch, but I could be very wrong. I have an idea or two, but I don't believe I wouldn't have any idea how to make an iprintf() command work with it.
-Sylus "Not Stylus..." McFrederickson

Come visit my web site.

WinterMute
Site Admin
Posts: 2003
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: Custom Fonts - 16 x 16 ?

Post by WinterMute » Wed Jan 21, 2009 4:52 am

Is there any particularly good reason you want 16x16 fonts? Bear in mind that this will decrease your text resolution to 16x12 character cells.

It's possible to do but I really can't imagine how it would be useful.
Help keep devkitPro toolchains free, Donate today

Personal Blog

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 8 guests