Scale applies to newlines in ScalableFont.DrawString
This commit is contained in:
@@ -206,8 +206,8 @@ namespace Barotrauma
|
|||||||
{
|
{
|
||||||
lineNum++;
|
lineNum++;
|
||||||
currentPos = position;
|
currentPos = position;
|
||||||
currentPos.X += baseHeight * 18 / 10 * lineNum * advanceUnit.Y;
|
currentPos.X += baseHeight * 18 / 10 * lineNum * advanceUnit.Y * scale.Y;
|
||||||
currentPos.Y += baseHeight * 18 / 10 * lineNum * advanceUnit.X;
|
currentPos.Y += baseHeight * 18 / 10 * lineNum * advanceUnit.X * scale.Y;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
uint charIndex = text[i];
|
uint charIndex = text[i];
|
||||||
|
|||||||
Reference in New Issue
Block a user