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.cc | |
parent | 60109b8a737059058d2b0664c7ea88ec501490f7 (diff) |
Refactored Painter.
Diffstat (limited to 'plugingui/font.cc')
-rw-r--r-- | plugingui/font.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugingui/font.cc b/plugingui/font.cc index 79e3ab9..8cc0a4f 100644 --- a/plugingui/font.cc +++ b/plugingui/font.cc @@ -72,7 +72,7 @@ Font::Font(const std::string& fontfile) characters[c - 1].width = characters[c].offset - characters[c - 1].offset - 1; } -size_t Font::textWidth(const std::string& text) +size_t Font::textWidth(const std::string& text) const { size_t len = 0; @@ -86,12 +86,12 @@ size_t Font::textWidth(const std::string& text) return len; } -size_t Font::textHeight(const std::string& text) +size_t Font::textHeight(const std::string& text) const { return img_font.height(); } -PixelBufferAlpha *Font::render(const std::string& text) +PixelBufferAlpha *Font::render(const std::string& text) const { int border = 1; PixelBufferAlpha *pb = |