[AD] [ alleg-Bugs-3116161 ] Offscreen font rendering looks wrong |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
Bugs item #3116161, was opened at 2010-11-22 22:24
Message generated for change (Tracker Item Submitted) made by siegelord
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105665&aid=3116161&group_id=5665
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Addons
Group: 4.9
Status: Open
Resolution: None
Priority: 7
Private: No
Submitted By: SiegeLord (siegelord)
Assigned to: Nobody/Anonymous (nobody)
Summary: Offscreen font rendering looks wrong
Initial Comment:
Observed on Linux with 5.0rc1. Text rendered on an offscreen bitmap looks noticeably "thinner". Here's test case. The offscreen text is the top line. Needs the DejaVuSans.ttf font from examples:
#include <allegro5/allegro.h>
#include <allegro5/allegro_font.h>
#include <allegro5/allegro_ttf.h>
int main(int argc, char* argv[]){
al_init();
al_init_font_addon();
al_init_ttf_addon();
ALLEGRO_DISPLAY* disp = al_create_display(800, 600);
al_clear_to_color(al_map_rgb_f(0, 0, 0));
ALLEGRO_FONT* f = al_load_font("DejaVuSans.ttf", 16, 0);
ALLEGRO_BITMAP* bmp = al_create_bitmap(400, 200);
al_set_target_bitmap(bmp);
al_clear_to_color(al_map_rgb_f(0, 0, 0));
al_draw_text(f, al_map_rgb_f(1,1,1), 0, 0, 0, "Test abcdefg.");
al_set_target_bitmap(al_get_backbuffer(disp));
al_draw_bitmap(bmp, 0, 0, 0);
al_draw_text(f, al_map_rgb_f(1,1,1), 0, 28, 0, "Test abcdefg.");
al_flip_display();
al_rest(10.0);
}
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105665&aid=3116161&group_id=5665