From 08fe64b91e7e43db54628f922f07864a8d8e5402 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 27 Nov 2021 19:42:03 +0100 Subject: Use correct offset y for font position (ascent) --- include/mgl/graphics/font.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/mgl/graphics/font.h b/include/mgl/graphics/font.h index 55d364f..69ac462 100644 --- a/include/mgl/graphics/font.h +++ b/include/mgl/graphics/font.h @@ -31,6 +31,9 @@ struct mgl_font { mgl_texture texture; mgl_font_atlas font_atlas; unsigned int character_size; + int ascent; + int descent; + int linegap; mgl_font_char_map char_map; int current_line_max_height; void *font_info; -- cgit v1.2.3