summaryrefslogtreecommitdiff
path: root/plugingui/font.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui/font.h')
-rw-r--r--plugingui/font.h11
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::