From 1ee7d3a84e3bc880abd7226b7dc1336b19d9211d Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 3 Sep 2021 02:37:37 +0200 Subject: Consistently calculate font height for different fonts --- include/Text.hpp | 1 + 1 file changed, 1 insertion(+) (limited to 'include') 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 -- cgit v1.2.3