diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2015-11-07 10:39:46 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2015-11-07 10:39:46 +0100 |
commit | a65ca7af57feaf7a4ea73f7e071a72eb9b3a1e24 (patch) | |
tree | 6cf9fa3b8b57513b8eae030bdc6e1a18495d7e75 /plugingui/font.h | |
parent | 60109b8a737059058d2b0664c7ea88ec501490f7 (diff) |
Refactored Painter.
Diffstat (limited to 'plugingui/font.h')
-rw-r--r-- | plugingui/font.h | 11 |
1 files changed, 3 insertions, 8 deletions
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<Character, 255> characters; - -// std::map<char, int> character_offset; -// std::map<char, size_t> character_width; -// std::map<char, int> character_pre_bias; -// std::map<char, int> character_post_bias; }; } // GUI:: |