Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » Draw Font from "Font Sheet"

This thread is locked; no one can reply to it. rss feed Print
Draw Font from "Font Sheet"
Eric Johnson
Member #14,841
January 2013
avatar

Hello. I'd like to create a "font sheet" (like a sprite sheet, but the graphics would be letters and whatnot; a font in bitmap form), and then would like to use said font sheet as a font in games. Is there any way to do this in Allegro 5, or would I be better off making my own function for this? Do you have any experience with this sort of thing?

Thank you!

SiegeLord
Member #7,827
October 2006
avatar

I guess you're looking for the bitmap font functionality? Specifically you want al_grab_font_from_bitmap.

"For in much wisdom is much grief: and he that increases knowledge increases sorrow."-Ecclesiastes 1:18
[SiegeLord's Abode][Codes]:[DAllegro5]:[RustAllegro]

Eric Johnson
Member #14,841
January 2013
avatar

That's exactly what I want!

Thanks, SiegeLord! ;D

Go to: