(029f124e6) Fixed ScalableFont.MeasureString giving incorrect results for texts with newlines
This commit is contained in:
@@ -279,7 +279,7 @@ namespace Barotrauma
|
||||
if (text[i] == '\n')
|
||||
{
|
||||
currentLineX = 0.0f;
|
||||
retVal.Y += baseHeight * 18 / 10;
|
||||
retVal.Y += baseHeight * 1.8f;
|
||||
continue;
|
||||
}
|
||||
uint charIndex = text[i];
|
||||
|
||||
Reference in New Issue
Block a user