We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ec1350 commit c2e9a25Copy full SHA for c2e9a25
examples/ex_ttf.c
@@ -90,7 +90,7 @@ static void render(void)
90
int cp = ustr_at(dimension_label, index);
91
ALLEGRO_GLYPH g;
92
if (al_get_glyph(ex.f2, prev_cp, cp, &g)) {
93
- al_draw_tinted_bitmap_region(g.bitmap, black, g.x, g.y, g.w, g.h, x + 10 + g.offset_x, y + g.offset_y, 0);
+ al_draw_tinted_bitmap_region(g.bitmap, black, g.x, g.y, g.w, g.h, x + 10 + g.kerning + g.offset_x, y + g.offset_y, 0);
94
x += g.advance;
95
}
96
prev_cp = cp;
0 commit comments