From f2e64e17527f16966a37c788ca65e1e88bf44907 Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Wed, 21 Jun 2023 18:59:15 +1000 Subject: Font improvements ?border and ?outline blend nicer when applied to font glyphs --- source/core/StarFont.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/core/StarFont.cpp') 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 */ -- cgit v1.2.3