diff --git a/src/SFML/Graphics/Font.cpp b/src/SFML/Graphics/Font.cpp index 0b285640..666266ad 100644 --- a/src/SFML/Graphics/Font.cpp +++ b/src/SFML/Graphics/Font.cpp @@ -631,7 +631,7 @@ Glyph Font::loadGlyph(Uint32 codePoint, unsigned int characterSize, bool bold, f } // Compute the glyph's advance offset - glyph.advance = std::round(static_cast(bitmapGlyph->root.advance.x) / static_cast(1 << 16)); + glyph.advance = static_cast(bitmapGlyph->root.advance.x >> 16); if (bold) glyph.advance += static_cast(weight) / static_cast(1 << 6);