Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/core/StarFont.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/core/StarFont.hpp')
-rw-r--r--source/core/StarFont.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/core/StarFont.hpp b/source/core/StarFont.hpp
index 954f27a..d353611 100644
--- a/source/core/StarFont.hpp
+++ b/source/core/StarFont.hpp
@@ -34,12 +34,13 @@ public:
// May return empty image on unrenderable character (Normally, this will
// render a box, but if there is an internal freetype error this may return
// an empty image).
- Image render(String::Char c);
+ std::pair<Image, int> render(String::Char c);
private:
FontImplPtr m_fontImpl;
ByteArrayConstPtr m_fontBuffer;
unsigned m_pixelSize;
+
HashMap<pair<String::Char, unsigned>, unsigned> m_widthCache;
};