aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-11-27 22:44:45 +0100
committerdec05eba <dec05eba@protonmail.com>2021-11-27 22:44:45 +0100
commit2743433cc8e56d96fd41fcad6ccce98cadd5ef9e (patch)
tree35203385deb719d9b3764c63614d9df42f7f51ea /include
parentaaf0b6edbbda67c2414b4736b82a00e6fe4025f5 (diff)
Use correct offset for font y position
Diffstat (limited to 'include')
-rw-r--r--include/mglpp/graphics/Font.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/mglpp/graphics/Font.hpp b/include/mglpp/graphics/Font.hpp
index afba8d3..7714144 100644
--- a/include/mglpp/graphics/Font.hpp
+++ b/include/mglpp/graphics/Font.hpp
@@ -31,6 +31,9 @@ namespace mgl {
// Returns 0 sized glyph if the font doesn't have the codepoint
FontGlyph get_glyph(uint32_t codepoint);
float get_kerning(uint32_t prev_codepoint, uint32_t codepoint);
+ int get_ascent() const;
+ int get_descent() const;
+ int get_linegap() const;
Texture get_texture() const;
mgl_font* internal_font();