diff --git a/Samples/MonoDevelop.Components.Chart/BasicChart.cs b/Samples/MonoDevelop.Components.Chart/BasicChart.cs index 3374be5c..2ba45b1e 100644 --- a/Samples/MonoDevelop.Components.Chart/BasicChart.cs +++ b/Samples/MonoDevelop.Components.Chart/BasicChart.cs @@ -69,7 +69,7 @@ namespace MonoDevelop.Components.Chart ChartCursor selectionStart; ChartCursor selectionEnd; - Font chartFont = Font.FromName ("Tahoma", 8); + Font chartFont = Font.FromName ("Tahoma 8"); public BasicChart () diff --git a/Samples/Samples/DrawingText.cs b/Samples/Samples/DrawingText.cs index e14bc922..61b3ee64 100644 --- a/Samples/Samples/DrawingText.cs +++ b/Samples/Samples/DrawingText.cs @@ -50,7 +50,8 @@ namespace Samples var col2 = new Rectangle (); var text = new TextLayout (ctx); - text.Font = this.Font.WithSize (10); + text.Font = this.Font.WithPointSize (24); + Console.WriteLine (text.Font.Size); // first text text.Text = "Lorem ipsum dolor sit amet,"; @@ -117,7 +118,7 @@ namespace Samples // proofing rotate, and printing size to see the values ctx.Save (); - text.Font = this.Font.WithSize (10); + text.Font = this.Font.WithPointSize (10); text.Text = string.Format ("Size 1 {0}\r\nSize 2 {1}\r\nSize 3 {2} Scale {3}", size1, size2, size3, scale); text.Width = -1; // this clears textsize diff --git a/Samples/Samples/TextEntries.cs b/Samples/Samples/TextEntries.cs index 8531148f..03e77f8a 100644 --- a/Samples/Samples/TextEntries.cs +++ b/Samples/Samples/TextEntries.cs @@ -43,7 +43,7 @@ namespace Samples PackStart (new Label ("Entry with small font")); TextEntry te2 = new TextEntry (); - te2.Font = te2.Font.WithSize (te2.Font.Size / 2); + te2.Font = te2.Font.WithScaledSize (0.5); PackStart (te2); PackStart (new Label ("Entry with placeholder text"));