Jump to content
  • Advertisement
Sign in to follow this  
econoy

example use of bitmap font?

This topic is 4979 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

can anybody give me an example use of bitmap font? I want my game to show some information on the screen.

Share this post


Link to post
Share on other sites
Advertisement
Quote:
I didnt use any API,because the platform of my game is dos.
Im using pure C to do that stuff.
Well you're probably not going to find an example (did you try google?) if you're not using a generic API.

Afaik, the old DOS/C routines for writing/reading/displaying bitmaps will be generic enough such that you can copy the way any other API's samples do it.

The older versions of the DirectX SDK had "CD3DFont" that rendered a font to a texture and used that as a bitmap font. Maybe of some interest?

Alternatively, if you're just doing tile rendering, get a piece of paper and a graphics editor - I made one of these in about 30mins once, didn't look too good till I put variable width characters and anti-alised edges in, but a basic one isn't rocket science.

hth
Jack

Share this post


Link to post
Share on other sites
Thx man.
I googled for a considerable long time.I found it hard to get
examples without using API,indeed.Old dos stuff is forgotten
by us,It is far behind the time.:)
What borthered me so much is my game should show both english
words and chinese characters.Im hearing that ascii glyph is in
ROM,so what is the address of it?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!