Skip to content

Commit e474813

Browse files
committed
Bitmap font y offset fix
1 parent 7fdc106 commit e474813

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gfx/drivers_font_renderer/bitmapfont.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ static void *font_renderer_bmp_init(const char *font_path, float font_size)
199199
handle->glyphs[i].atlas_offset_x = x;
200200
handle->glyphs[i].atlas_offset_y = y;
201201
handle->glyphs[i].draw_offset_x = 0;
202-
handle->glyphs[i].draw_offset_y = -FONT_HEIGHT_BASELINE_OFFSET * handle->scale_factor;
202+
handle->glyphs[i].draw_offset_y = 1 - FONT_HEIGHT_BASELINE_OFFSET * handle->scale_factor;
203203
handle->glyphs[i].advance_x = FONT_WIDTH_STRIDE * handle->scale_factor;
204204
handle->glyphs[i].advance_y = 0;
205205
}

0 commit comments

Comments
 (0)