aboutsummaryrefslogtreecommitdiffstatsci
path: root/src
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2016-02-17 01:07:40 +0100
committerjpbruyere <jp.bruyere@hotmail.com>2016-02-17 01:07:40 +0100
commit7e1fde10929505c741a86cba3cc7643bc149a498 (patch)
treee2db6f1152a33c0f70c398bf88492bf14c4e3c8f /src
parenta8a5562df0358b314197f3685fc7622ecfd307d0 (diff)
debug text sizing
Diffstat (limited to 'src')
-rw-r--r--src/GraphicObjects/Label.cs4
-rw-r--r--src/GraphicObjects/TextRun.cs4
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;