Previously it would use the last char position, which resulted in incorrect values when the next char had a different size than the current one. (cherry picked from commit f066c88e186a02b9912d7f102b541f514ae1aa35)
Previously it would use the last char position, which resulted in incorrect values when the next char had a different size than the current one. (cherry picked from commit f066c88e186a02b9912d7f102b541f514ae1aa35)