View Full Version : Bitmap font
11-15-2001, 10:56 PM
How to create bitmap font that has no background, I don't want to have my fonts inside rectangles.
Check nehe.gamedev.net 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.
Render with GL_SRC_ALPHA,GL_ONE_MUS_SRC_ALPA
(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)
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.