diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-11-27 19:42:03 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-11-27 22:42:33 +0100 |
commit | 08fe64b91e7e43db54628f922f07864a8d8e5402 (patch) | |
tree | d2599eefb3a9bfbcce927bd4898e04eb0193ba73 /include | |
parent | 0e3128798912a46705323d5c6546c2bdf2ade678 (diff) |
Use correct offset y for font position (ascent)
Diffstat (limited to 'include')
-rw-r--r-- | include/mgl/graphics/font.h | 3 |
1 files changed, 3 insertions, 0 deletions
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; |