From 7e1fde10929505c741a86cba3cc7643bc149a498 Mon Sep 17 00:00:00 2001 From: jpbruyere Date: Wed, 17 Feb 2016 01:07:40 +0100 Subject: [PATCH] debug text sizing --- src/GraphicObjects/Label.cs | 4 ++-- src/GraphicObjects/TextRun.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/GraphicObjects/Label.cs b/src/GraphicObjects/Label.cs index dd5b89e2..ad6549a1 100644 --- a/src/GraphicObjects/Label.cs +++ b/src/GraphicObjects/Label.cs @@ -370,8 +370,8 @@ namespace Crow //gr.FontOptions.Antialias = Antialias.Subpixel; //gr.FontOptions.HintMetrics = HintMetrics.On; - rText = new Rectangle( - measureRawSize(LayoutingType.Width), measureRawSize(LayoutingType.Height)); + rText = new Rectangle(new Size( + measureRawSize(LayoutingType.Width), measureRawSize(LayoutingType.Height))); rText.Width -= 2 * Margin; rText.Height -= 2 * Margin; diff --git a/src/GraphicObjects/TextRun.cs b/src/GraphicObjects/TextRun.cs index ef19cb04..bb308eb6 100644 --- a/src/GraphicObjects/TextRun.cs +++ b/src/GraphicObjects/TextRun.cs @@ -195,8 +195,8 @@ namespace Crow //gr.FontOptions.Antialias = Antialias.Subpixel; //gr.FontOptions.HintMetrics = HintMetrics.On; - rText = new Rectangle( - measureRawSize(LayoutingType.Width), measureRawSize(LayoutingType.Height)); + rText = new Rectangle(new Size( + measureRawSize(LayoutingType.Width), measureRawSize(LayoutingType.Height))); rText.Width -= 2 * Margin; rText.Height -= 2 * Margin; -- 2.47.3