aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-09-03 02:37:37 +0200
committerdec05eba <dec05eba@protonmail.com>2021-09-03 02:37:37 +0200
commit1ee7d3a84e3bc880abd7226b7dc1336b19d9211d (patch)
treeff4f7b9466f3c61ae7648b04663ad50dde94530a /include
parent53d23bbaf257c588409825ff50857c02b43dd407 (diff)
Consistently calculate font height for different fonts
Diffstat (limited to 'include')
-rw-r--r--include/Text.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/Text.hpp b/include/Text.hpp
index 26ac141..8eb5c96 100644
--- a/include/Text.hpp
+++ b/include/Text.hpp
@@ -134,6 +134,7 @@ namespace QuickMedia
void splitTextByFont();
+ float font_get_real_height(sf::Font *font);
float get_text_quad_left_side(const VertexRef &vertex_ref) const;
float get_text_quad_right_side(const VertexRef &vertex_ref) const;
// If the index is past the end, then the caret offset is the right side of the last character, rather than the left side