aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/mgl/graphics/font.h2
-rw-r--r--include/mgl/graphics/font_glyph.h2
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 */