Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add larger fonts #342

Open
CoolerTails opened this issue Jul 24, 2024 · 1 comment
Open

Add larger fonts #342

CoolerTails opened this issue Jul 24, 2024 · 1 comment

Comments

@CoolerTails
Copy link

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

@D0NM
Copy link
Contributor

D0NM commented Mar 3, 2025

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);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants