From f0fec34dc9c2dbc86dd424e4963983cbb2ed9b41 Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Wed, 21 Jun 2023 22:29:40 +1000 Subject: The Fontpocalypse I hate it --- source/core/StarFont.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/core/StarFont.cpp') diff --git a/source/core/StarFont.cpp b/source/core/StarFont.cpp index 59a094b..e16a2be 100644 --- a/source/core/StarFont.cpp +++ b/source/core/StarFont.cpp @@ -78,7 +78,7 @@ unsigned Font::width(String::Char c) { if (auto width = m_widthCache.maybe({c, m_pixelSize})) { return *width; } else { - FT_Load_Char(m_fontImpl->face, c, FT_LOAD_DEFAULT); + FT_Load_Char(m_fontImpl->face, c, FT_LOAD_FORCE_AUTOHINT); unsigned newWidth = (m_fontImpl->face->glyph->advance.x + 32) / 64; m_widthCache.insert({c, m_pixelSize}, newWidth); return newWidth; -- cgit v1.2.3