|
al_load_bitmap |
CodeStepper
Member #14,495
August 2012
|
Hello everyone. How to create bitmap with font for allegro? Thanks in advance. |
beoran
Member #12,636
March 2011
|
You need to link and initialize the font addon, then use al_grab_font_from_bitmap() |
CodeStepper
Member #14,495
August 2012
|
Hmm... I know... |
beoran
Member #12,636
March 2011
|
You could make the font bitmap with any image editor or image tool you like, as long as the format is correct. Basically, the background (transparent) color is at the top left hand corner ((0,0) coordinates) of the bitmap, and every glyph needs a rectangular border of that color around it. Look at this thread for a few example bitmap fonts that can be used together with Allegro: |
CodeStepper
Member #14,495
August 2012
|
Thanks, that's what I mean! |
|