diff --git a/src/mbgl/text/shaping.cpp b/src/mbgl/text/shaping.cpp index 016841ba6..9f83cea7d 100644 --- a/src/mbgl/text/shaping.cpp +++ b/src/mbgl/text/shaping.cpp @@ -145,7 +145,7 @@ void align(Shaping& shaping, if (maxLineHeight != lineHeight) { shiftY = -blockHeight * verticalAlign - Shaping::yOffset; } else { - shiftY = (-verticalAlign * static_cast(lineCount + 0.5)) * lineHeight; + shiftY = (-verticalAlign * static_cast(lineCount) + 0.5f) * lineHeight; } for (auto& line : shaping.positionedLines) {