SGDK icon indicating copy to clipboard operation
SGDK copied to clipboard

Add larger fonts

Open CoolerTails opened this issue 1 year ago • 1 comments

Would it be possible to add the possibility of larger fonts such as 16x16 or 16x8? Due to the 8x8 being small for some characters, I had difficulty trying to adapt the font to the small size, a larger graphic for the fonts would help a lot

CoolerTails avatar Jul 24 '24 23:07 CoolerTails

but it'll waste 2x more tiles in VRAM. That's why it's up to the game coder.

I may suggest splitting fonts into 2 parts: upper 8x8 parts and bottom 8x8 parts. Put all upper character halves in the range of 'A'..'Z' and the bottom halves into the range of 'a'..'z'.

Now, to print HELLO with your new 8x16px font u should print the word twice

VDP_drawText("HELLO", posX, posY);
VDP_drawText("hello", posX, posY + 1);

D0NM avatar Mar 03 '25 09:03 D0NM