aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-11-17 11:40:54 +0100
committerdec05eba <dec05eba@protonmail.com>2021-11-17 11:40:54 +0100
commitff7593f5e6ee131eefe5d1e793626fe05a9513b1 (patch)
tree575238ad3b9306f1d5b41656b5e772ef28c90149 /include
parent929402828d99810211c644ce4ecf07b98013be10 (diff)
Readd kerning
Diffstat (limited to 'include')
-rw-r--r--include/mglpp/graphics/Font.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/mglpp/graphics/Font.hpp b/include/mglpp/graphics/Font.hpp
index 440dabe..ca6a146 100644
--- a/include/mglpp/graphics/Font.hpp
+++ b/include/mglpp/graphics/Font.hpp
@@ -16,7 +16,7 @@ namespace mgl {
vec2i size;
vec2i texture_position; /* In pixel space */
vec2i texture_size; /* In pixel space */
- int advance = 0;
+ float advance = 0.0f;
};
class Font {
@@ -28,7 +28,7 @@ namespace mgl {
unsigned int get_character_size() const;
// Returns 0 sized glyph if the font doesn't have the codepoint
FontGlyph get_glyph(uint32_t codepoint);
- int get_kerning(uint32_t prev_codepoint, uint32_t codepoint);
+ float get_kerning(uint32_t prev_codepoint, uint32_t codepoint);
Texture get_texture() const;
mgl_font* internal_font();