diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-11-17 11:39:18 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-11-17 11:39:18 +0100 |
commit | 909ee26e03d6a7f93b83fad9709139565a62629a (patch) | |
tree | 0e7a72d66fe71f3c36ccce68342e983ce82c3ecd /include | |
parent | a14eb65e82d226fe8b33ca23d29eeba02066357d (diff) |
Readd kerning
Diffstat (limited to 'include')
-rw-r--r-- | include/mgl/graphics/font.h | 2 | ||||
-rw-r--r-- | include/mgl/graphics/font_glyph.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/mgl/graphics/font.h b/include/mgl/graphics/font.h index 6b7eb34..4bd0428 100644 --- a/include/mgl/graphics/font.h +++ b/include/mgl/graphics/font.h @@ -40,6 +40,6 @@ void mgl_font_unload(mgl_font *self); int mgl_font_get_glyph(mgl_font *self, uint32_t codepoint, mgl_font_glyph *glyph); /* Returns the kerning */ -int mgl_font_get_kerning(const mgl_font *self, uint32_t prev_codepoint, uint32_t codepoint); +float mgl_font_get_kerning(const mgl_font *self, uint32_t prev_codepoint, uint32_t codepoint); #endif /* MGL_FONT_H */ diff --git a/include/mgl/graphics/font_glyph.h b/include/mgl/graphics/font_glyph.h index 0d9cb2d..11c54cf 100644 --- a/include/mgl/graphics/font_glyph.h +++ b/include/mgl/graphics/font_glyph.h @@ -8,7 +8,7 @@ typedef struct { mgl_vec2i size; mgl_vec2i texture_position; /* In pixel space */ mgl_vec2i texture_size; /* In pixel space */ - int advance; + float advance; } mgl_font_glyph; #endif /* MGL_FONT_GLYPH_H */ |