diff --git a/src/text.cpp b/src/text.cpp index 4ebd46a7..ee473759 100644 --- a/src/text.cpp +++ b/src/text.cpp @@ -825,7 +825,7 @@ std::vector TextLayoutPlainLine( ptg.DestRect.X = currentX; ptg.DestRect.Y = pos.y; ptg.DestRect.Width = - std::floor((fontSize / font->CellHeight) * font->AdvanceWidths[ptg.CharId]); + std::floor((fontSize / font->BitmapEmWidth) * font->AdvanceWidths[ptg.CharId]); ptg.DestRect.Height = fontSize; currentX += ptg.DestRect.Width;