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

summaryrefslogtreecommitdiff
path: root/source/core/StarFont.cpp
diff options
context:
space:
mode:
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 */