From: jpbruyere Date: Wed, 17 Feb 2016 00:07:40 +0000 (+0100) Subject: debug text sizing X-Git-Tag: v0.4~127^2~2 X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=7e1fde10929505c741a86cba3cc7643bc149a498;p=jp%2Fcrow.git debug text sizing --- 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;