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/rendering/StarTextPainter.hpp | |
parent | 65bacddc67942e8678626016960431cdecef2030 (diff) |
Add optional alpha threshold option for fonts
Diffstat (limited to 'source/rendering/StarTextPainter.hpp')
-rw-r--r-- | source/rendering/StarTextPainter.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/rendering/StarTextPainter.hpp b/source/rendering/StarTextPainter.hpp index 381a358..e71c385 100644 --- a/source/rendering/StarTextPainter.hpp +++ b/source/rendering/StarTextPainter.hpp @@ -87,6 +87,7 @@ private: RectF doRenderGlyph(String::Char c, TextPositioning const& position, bool reallyRender); void renderGlyph(String::Char c, Vec2F const& screenPos, unsigned fontSize, float scale, Vec4B const& color, Directives const* processingDirectives = nullptr); + static FontPtr loadFont(String const& fontPath, Maybe<String> fontName = {}); RendererPtr m_renderer; FontTextureGroup m_fontTextureGroup; |