- Online Community Forums » Programming Questions » Allergo 5 - Text background color

This thread is locked; no one can reply to it. rss feed Print
Allergo 5 - Text background color
Tim S.
Member #14,310
May 2012

Hello, Community!

I use Allegro 5 on my next little project.
Is it possible to somehow al_draw_text to choose the background color as textout_ex (Allegro 4)?

Best regards

Trent Gamblin
Member #261
April 2000

No, you can use al_draw_filled_rectangle before drawing the text though. You can get the dimensions of the text with al_get_text_width and al_get_font_line_height.

Go to: