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

summaryrefslogtreecommitdiff
path: root/source/core/StarFont.hpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-08-04 23:47:52 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2023-08-04 23:47:52 +1000
commit2a204b384fc61b59aa6b2f9998c3af28013f7d17 (patch)
tree4c5ea83fe2936ae1b0cc02cd3fe411189b240882 /source/core/StarFont.hpp
parent65bacddc67942e8678626016960431cdecef2030 (diff)
Add optional alpha threshold option for fonts
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;
};