diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-08-04 23:47:52 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-08-04 23:47:52 +1000 |
commit | 2a204b384fc61b59aa6b2f9998c3af28013f7d17 (patch) | |
tree | 4c5ea83fe2936ae1b0cc02cd3fe411189b240882 /source/core/StarFont.hpp | |
parent | 65bacddc67942e8678626016960431cdecef2030 (diff) |
Add optional alpha threshold option for fonts
Diffstat (limited to 'source/core/StarFont.hpp')
-rw-r--r-- | source/core/StarFont.hpp | 2 |
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; }; |