how can I render a font

Post Reply
jinoh67
Posts: 4
Joined: Sat May 04, 2013 4:18 am

how can I render a font

Post by jinoh67 » Sun May 05, 2013 10:07 am

I want to use a custom font in my game, but I don't know what the best way is.

1. Make individual sprites/bg/tile for one character
2. Overlap the fonts on the sprites/bg/tile
3. Make sprites/bg in tile mode.

Which one is best, and how can I implement it?
I think first is a good way to render a font..
(The fonts have transparent background)

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

Re: how can I render a font

Post by WinterMute » Sat May 18, 2013 10:24 pm

There isn't really a right answer to this, it largely depends on how you intend to use the font in game.
Help keep devkitPro toolchains free, Donate today

devkitPro IRC support
Personal Blog

sverx
Posts: 94
Joined: Wed Aug 12, 2009 2:56 pm
Location: github.com/sverx
Contact:

Re: how can I render a font

Post by sverx » Sun May 19, 2013 1:26 pm

If you plan to use a 8px fixed width font, the faster approach is to use a text BG for that. If you want to use a variable width font, I guess you will be forced to render them on a bitmap BG. There can be other options in between ;)

StevenH
Posts: 133
Joined: Sun Feb 22, 2009 7:59 pm

Re: how can I render a font

Post by StevenH » Mon May 20, 2013 4:01 pm

There's always my partially completed graphics console lib, that I've got to update at some point, just finding time between work and relaxing is hard.

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests