Веб-сайт самохостера 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.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/core/StarFont.hpp b/source/core/StarFont.hpp
index e4786b6..a3b3ced 100644
--- a/source/core/StarFont.hpp
+++ b/source/core/StarFont.hpp
@@ -27,6 +27,7 @@ public:
FontPtr clone() const;
void setPixelSize(unsigned pixelSize);
+ void setAlphaThreshold(uint8_t alphaThreshold = 0);
unsigned height() const;
unsigned width(String::Char c);
@@ -40,6 +41,7 @@ private:
FontImplPtr m_fontImpl;
ByteArrayConstPtr m_fontBuffer;
unsigned m_pixelSize;
+ uint8_t m_alphaThreshold;
HashMap<pair<String::Char, unsigned>, unsigned> m_widthCache;
};