Track api changes
This commit is contained in:
Родитель
eb8788a990
Коммит
9d68e6dbb1
|
@ -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 ()
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"));
|
||||
|
|
Загрузка…
Ссылка в новой задаче