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

summaryrefslogtreecommitdiff
path: root/source/core/StarFont.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-06-21 18:59:15 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2023-06-21 18:59:15 +1000
commitf2e64e17527f16966a37c788ca65e1e88bf44907 (patch)
tree359ff507a1885bda2f085062bacbcc9ae4dd4f57 /source/core/StarFont.cpp
parentd08b3c3b229cded61f3abe4efb44329fa762a93a (diff)
Font improvements
?border and ?outline blend nicer when applied to font glyphs
Diffstat (limited to 'source/core/StarFont.cpp')
-rw-r--r--source/core/StarFont.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/core/StarFont.cpp b/source/core/StarFont.cpp
index 66767aa..59a094b 100644
--- a/source/core/StarFont.cpp
+++ b/source/core/StarFont.cpp
@@ -87,10 +87,10 @@ unsigned Font::width(String::Char c) {
Image Font::render(String::Char c) {
if (!m_fontImpl)
- throw FontException("Font::render called on uninitialzed font.");
+ throw FontException("Font::render called on uninitialized font.");
FT_UInt glyph_index = FT_Get_Char_Index(m_fontImpl->face, c);
- if (FT_Load_Glyph(m_fontImpl->face, glyph_index, FT_LOAD_DEFAULT) != 0)
+ if (FT_Load_Glyph(m_fontImpl->face, glyph_index, FT_LOAD_FORCE_AUTOHINT) != 0)
return {};
/* convert to an anti-aliased bitmap */