From 2d9f7069983a3fa3fd650edc7437032349ab3dda Mon Sep 17 00:00:00 2001 From: juanjp600 Date: Tue, 7 Mar 2017 15:44:59 -0300 Subject: [PATCH] Scale applies to newlines in ScalableFont.DrawString --- Subsurface/Source/Fonts/ScalableFont.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Subsurface/Source/Fonts/ScalableFont.cs b/Subsurface/Source/Fonts/ScalableFont.cs index 526394ec9..525621b99 100644 --- a/Subsurface/Source/Fonts/ScalableFont.cs +++ b/Subsurface/Source/Fonts/ScalableFont.cs @@ -206,8 +206,8 @@ namespace Barotrauma { lineNum++; currentPos = position; - currentPos.X += baseHeight * 18 / 10 * lineNum * advanceUnit.Y; - currentPos.Y += baseHeight * 18 / 10 * lineNum * advanceUnit.X; + currentPos.X += baseHeight * 18 / 10 * lineNum * advanceUnit.Y * scale.Y; + currentPos.Y += baseHeight * 18 / 10 * lineNum * advanceUnit.X * scale.Y; continue; } uint charIndex = text[i];