aboutsummaryrefslogtreecommitdiff
path: root/src/graphics
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 /src/graphics
parentaaf0b6edbbda67c2414b4736b82a00e6fe4025f5 (diff)
Use correct offset for font y position
Diffstat (limited to 'src/graphics')
-rw-r--r--src/graphics/Font.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/graphics/Font.cpp b/src/graphics/Font.cpp
index 2efae40..09ebfd0 100644
--- a/src/graphics/Font.cpp
+++ b/src/graphics/Font.cpp
@@ -34,6 +34,18 @@ namespace mgl {
return mgl_font_get_kerning(&font, prev_codepoint, codepoint);
}
+ int Font::get_ascent() const {
+ return font.ascent;
+ }
+
+ int Font::get_descent() const {
+ return font.descent;
+ }
+
+ int Font::get_linegap() const {
+ return font.linegap;
+ }
+
Texture Font::get_texture() const {
return Texture::reference(font.texture);
}