Sign in to follow this  
econoy

example use of bitmap font?

Recommended Posts

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this