Bitmap font

How to create bitmap font that has no background, I don’t want to have my fonts inside rectangles.

Check tutorial 20, about masking, you can also mask your font that way…


whereever a bit is not set is no pixel drawn.

I’ve done that way :

Pick up the standard font

Choose a MASK color that doesn’t appear in your font

Fill the background of the font picture with that color

Read the bitmap and set the alpha value to 0 when you find the MASK color.


Have fun…

(The better looking way is to use your hown format for fotn picture including the alpha channell in the font bitmap, this means doing two bitmap pictures or write a simple tool that creates a picture with alpha in some way)