Advertisement

Convert Font to BMP ?

Started by February 26, 2006 03:59 AM
3 comments, last by mojtaba_e 18 years, 11 months ago
Hi friends, I want to convert font to BMP files(each font size is 16*16), and all bmp files must insert side by side and create a one BMP file for use in game. Are there any program can do this ? Thanks, --Mojtaba Ebrahimi--
--Mojtaba--
I am assuming that you're converting .ttf to .bmp.

You could probably make one with SDL. SDL_ttf will allow you to print the font to a surface. By that I mean, print any letters/characters in the font, which will enable you to print the entire thing. Then you can save it as a bitmap with one of SDL's functions(I can't remeber which).

Alternatively, you might be able to view(windows comes with something to view them) a .ttf file and then take a screenshot of it and paste that into a .bmp file.

Edit: or just go into Paint/The Gimp/Photoshop and type out the font from in there. You can only use 'system fonts', but I believe that if you put a custom font in the same folder, it will work. THen just save it as a bitmap.
Advertisement
Thanks Ezbez ,
I want to use the persian(farsi) font in my game.I forced that use BMP file.

In the persian language there are about 200(maybe more than 200!) characters,if i want to save this file with Photoshop this take too many times!

I want know that, Are there any programs can do this task ?

--Mojtaba--
--Mojtaba--
bitmap font builder?
On the other hand, writing 200 characters takes some time but it's doable (I've done it) :)
Thanks sirGustav ,
That worked very good.

--Mojtaba--

This topic is closed to new replies.

Advertisement