Patryk
Patryk

Reputation: 24092

How to simply generate bitmaps for every character in the alphabet for a given font?

I want to generate a .bmp file with every character in a specific font.

There used to be a program in the internet called Font 2 BMP but somehow it is now nowhere to be found.

It was a perfect solution for me because it printed the .bmps with the character's ASCII code.

Can someone suggest a solution for this ? For instance how to do it in C++ (or C#) as I need this for my project in C++ and this would be really easy for me to implement. Or suggest alternative to Font 2 BMP.

Upvotes: 1

Views: 3399

Answers (1)

Fletch
Fletch

Reputation: 963

I'm unclear if you're looking for a tool to solve this problem, or the code to solve it.

Here's a tool that might work for you: http://www.angelcode.com/products/bmfont/

I don't know what platform you're on, but many platforms (e.g. .NET, Cocoa) allow you to create a Rendering Context, draw a letter onto it, then save that context as a bitmap/png file.

Upvotes: 1

Related Questions