From ccb273117a0507a51af0c1e4f44a3215a9764301 Mon Sep 17 00:00:00 2001 From: Brian Ferguson Date: Fri, 2 Aug 2013 09:54:14 -0600 Subject: [PATCH] D2D: Tweaks --- Common/Gfx/Util/DWriteHelpers.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Common/Gfx/Util/DWriteHelpers.cpp b/Common/Gfx/Util/DWriteHelpers.cpp index b01fa228..5320b6f2 100644 --- a/Common/Gfx/Util/DWriteHelpers.cpp +++ b/Common/Gfx/Util/DWriteHelpers.cpp @@ -33,8 +33,8 @@ DWRITE_TEXT_METRICS GetAdjustedDWriteTextLayoutMetrics( { float size = 0.0f; textLayout->GetFontSize(0, &size); - metrics.width = floor(metrics.width + (size / 2.05f) + (metrics.width / 55.0f) - 0.5f); - metrics.height = floor(metrics.height + (size / 9.25f) + 0.3f); + metrics.width = floor(metrics.width + ((size / 6.0f) * 4.0f) + ((size * 3.0f / 4.0f) / 17.5f) + 0.255f); + metrics.height = floor(metrics.height * 1.087f); } return metrics;