gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > Font size

#157954 - Meduusa - Mon Jun 02, 2008 1:14 pm

In a custom font example that came with devkitpro is it possible to change font size to lets say 16x16 or 32x32 and how? I guess i how to resize a font.bmp in a data folder and make changes to font.h like so

Code:

#define font_WIDTH   16
#define font_HEIGHT   1536


if I want a 16x16 font. But what else I should do to get a 16x16 font?

#157955 - kusma - Mon Jun 02, 2008 1:16 pm

It's a lot trickier than just that. The 8x8 font fits very nice with the DS 8x8 tile-size, giving a nice 1 to 1 relationship. Breaking this assumption is non-trivial.