looking for fonts
Are there any good fonts in BMP format out there for use in a DirectX game? No monochrome fonts please - I''m looking for a multicolored font like those in commercial or shareware games.
A good paint program and some time will yield an infinate amount of good multicolored bitmap fonts, in the exact size you want them
check out www.1001freefonts.com and get a few nice fonts, then just type it up in whatever size onto a bitmap
Actually, this page has fonts in .bmp format you can use (..I think...). They're kinda big, but its worth a look.
Hrm... I don't think it'd be too difficult to write a utility that converts windows fonts to bitmaps.. wonder why nobody has done it yet (or if they have, released it to the public)?
Edited by - A. Buza on July 30, 2000 2:59:11 AM
Hrm... I don't think it'd be too difficult to write a utility that converts windows fonts to bitmaps.. wonder why nobody has done it yet (or if they have, released it to the public)?
Edited by - A. Buza on July 30, 2000 2:59:11 AM
I''ve seen some code on the net that does just that, If I can find it again I''ll post the site name.
They have wrote a full tutoial on it, and even an application (i think)
Ah, found it here at Mr-GameMaker.
They have wrote a full tutoial on it, and even an application (i think)
Ah, found it here at Mr-GameMaker.
When I find my code in tons of trouble,Friends and colleages come to me,Speaking words of wisdom:"Write in C."My Web Site
I downloaded some of those bitmap fonts suggested by A. Buza, but I need a C++ class or something to blit them to a DirectDrawSurface.
That is is actually the easy part.
Once you have your font, just create a big surface for it and plot the pixels.
You can find some good fonts on old DOS ftp sites. Look in www.simtel.net (it will redirect you to the their site) under DOS and search for font editors. They are in a bit pattern so you need to expand them from bits to bytes in order to plot them into your surface.
Good Luck.
Once you have your font, just create a big surface for it and plot the pixels.
You can find some good fonts on old DOS ftp sites. Look in www.simtel.net (it will redirect you to the their site) under DOS and search for font editors. They are in a bit pattern so you need to expand them from bits to bytes in order to plot them into your surface.
Good Luck.
The nightmare travels across the cosmos with his burning mane. The trail of ash that is produced.
?Have a nice day!?
What I mean by "blit the font to a DirectDrawSurface" is, I have all the characters that are part of the font in a bitmap. I load this bitmap onto a surface, but now I want to blit a string to the screen using this bitmap font. How would I go about doing this?
BTW, is there any code available about coding a scrolling marquee that would work with this same font algorythym?
BTW, is there any code available about coding a scrolling marquee that would work with this same font algorythym?
To blit your string is easy:
Assume this is your bitmap (ok so this is just text)
0123456789
ABCDEFGHIJ
KLMNOPQRST
UVWXYZ
do the following code (pseudo)
i = 1 to strlen
if str >= '0' and str <= '9' then<br>image = str - '0'<br>else if str >= 'A' and str <= 'Z' then<br>image = str - 'A' + 10<br>endif<br>next i<br><br>then convert the image number to the x,y offset to the image<br><br>if the graphics contain other charaters then just add them to the if … elseif …endif section of the psuedo code<br><br>Edited by - Steven on July 31, 2000 4:00:47 PM
Assume this is your bitmap (ok so this is just text)
0123456789
ABCDEFGHIJ
KLMNOPQRST
UVWXYZ
do the following code (pseudo)
i = 1 to strlen
if str >= '0' and str <= '9' then<br>image = str - '0'<br>else if str >= 'A' and str <= 'Z' then<br>image = str - 'A' + 10<br>endif<br>next i<br><br>then convert the image number to the x,y offset to the image<br><br>if the graphics contain other charaters then just add them to the if … elseif …endif section of the psuedo code<br><br>Edited by - Steven on July 31, 2000 4:00:47 PM
When I find my code in tons of trouble,Friends and colleages come to me,Speaking words of wisdom:"Write in C."My Web Site
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement