Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

2D All the way! / best method for bitmap fonts?

Author
Message
Genesis Rage
21
Years of Service
User Offline
Joined: 5th Oct 2003
Location:
Posted: 9th May 2005 09:52
wondering what is the best and easiest way to use bitmapped fonts. i have seen another engine that uses a bitmap with red and yellow pixels to get the character size and locations. i can see how that could be a problem (cant have red or yellow, i would guess).

would it be relatively easy to make some kind of function where you just needed to do something like loadBmpFont("font.bmp", font_name) to set the font then printBmpFont("Text to display", font_name) ?


P4 3.5 GHz HT, 1 GHz FSB, 1 GB PC4000, ATI Radeon 9800XT
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 12th May 2005 21:18
check the codebase, ive seen this question asked a few times and seen people write scripts that solve it quite easily.

the basics to it is to grab an image of the text then use them in the sprite image references.




If no-one gives your an answer to a question you have asked, consider:- Is your question clear.- Did you ask nicely.- Are you showing any effort to solve the problem yourself

Login to post a reply

Server time is: 2025-05-17 10:17:50
Your offset time is: 2025-05-17 10:17:50