]> O.S.I.I.S - jp/crow.git/commitdiff
debug text sizing
authorjpbruyere <jp.bruyere@hotmail.com>
Wed, 17 Feb 2016 00:07:40 +0000 (01:07 +0100)
committerjpbruyere <jp.bruyere@hotmail.com>
Wed, 17 Feb 2016 00:07:40 +0000 (01:07 +0100)
src/GraphicObjects/Label.cs
src/GraphicObjects/TextRun.cs

index dd5b89e28f8bb91fe347f472dbb4617682d52f86..ad6549a1852ec0b0d14e4ef2f5916eb539950a93 100644 (file)
@@ -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;
 
index ef19cb045c1d1507cee1e8d35c95e6e7c2061ed9..bb308eb6451a855438e8db644fa54f872e2008e5 100644 (file)
@@ -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;