diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-11-17 03:15:16 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-11-17 03:15:16 +0100 |
commit | c18f87ad13da518af5ff245dbce2a9e608097ea1 (patch) | |
tree | 3ca8a22df68fc1ef7ecd7b9ec449a733b76de67a /include/mgl/graphics | |
parent | ccd0e65a0ddccd9c52d4c075ec1cad41ae7edb40 (diff) |
Attempt to fix font glyph texture overlap by aligning texture size to
next character size
Add function to get the start of a utf8 codepoint (backwards), test utf8
functions
Diffstat (limited to 'include/mgl/graphics')
-rw-r--r-- | include/mgl/graphics/font.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mgl/graphics/font.h b/include/mgl/graphics/font.h index adcc8a7..6b7eb34 100644 --- a/include/mgl/graphics/font.h +++ b/include/mgl/graphics/font.h @@ -25,7 +25,7 @@ typedef struct { } mgl_font_atlas; struct mgl_font { - mgl_texture texture; + mgl_texture texture; /* Font texture coordinates are in pixel space */ mgl_font_atlas font_atlas; unsigned int character_size; mgl_font_char_map char_map; |