diff --git a/es-core/src/resources/Font.cpp b/es-core/src/resources/Font.cpp index 6a3924989..51d21e8e5 100644 --- a/es-core/src/resources/Font.cpp +++ b/es-core/src/resources/Font.cpp @@ -154,7 +154,7 @@ TextCache* Font::buildTextCache(const std::string& text, yBot = getHeight(lineSpacing); } - float y {offset[1] + (yBot + yTop) / 2.0f}; + float y {std::round(offset[1] + (yBot + yTop) / 2.0f)}; // Vertices by texture. std::map> vertMap;