From a65ca7af57feaf7a4ea73f7e071a72eb9b3a1e24 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 7 Nov 2015 10:39:46 +0100 Subject: Refactored Painter. --- plugingui/font.h | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'plugingui/font.h') diff --git a/plugingui/font.h b/plugingui/font.h index c7fe67e..d350481 100644 --- a/plugingui/font.h +++ b/plugingui/font.h @@ -38,10 +38,10 @@ class Font { public: Font(const std::string& fontfile = ":font.png"); - size_t textWidth(const std::string& text); - size_t textHeight(const std::string& text = ""); + size_t textWidth(const std::string& text) const; + size_t textHeight(const std::string& text = "") const; - PixelBufferAlpha *render(const std::string& text); + PixelBufferAlpha *render(const std::string& text) const; private: Image img_font; @@ -54,11 +54,6 @@ private: }; std::array characters; - -// std::map character_offset; -// std::map character_width; -// std::map character_pre_bias; -// std::map character_post_bias; }; } // GUI:: -- cgit v1.2.3