diff --git a/examples/common/font/font_manager.cpp b/examples/common/font/font_manager.cpp index 5416fc557..2af76f259 100644 --- a/examples/common/font/font_manager.cpp +++ b/examples/common/font/font_manager.cpp @@ -522,7 +522,9 @@ float FontManager::getKerning(FontHandle _handle, CodePoint _prevCodePoint, Code if (isValid(cachedFont.masterFontHandle)) { CachedFont& baseFont = m_cachedFonts[cachedFont.masterFontHandle.idx]; - return baseFont.trueTypeFont->m_scale * stbtt_GetCodepointKernAdvance(&baseFont.trueTypeFont->m_font, _prevCodePoint, _codePoint); + return baseFont.trueTypeFont->m_scale + * stbtt_GetCodepointKernAdvance(&baseFont.trueTypeFont->m_font, _prevCodePoint, _codePoint) + * cachedFont.fontInfo.scale; } else {