Type Default Value Read Only Static Description
String Latin No No The text font language.

Set this property to one of the following values to ensure characters in complicated script languages are displayed correctly.

  • Latin
  • Unicode
  • Korean
  • Japanese
  • ChineseS
  • ChineseT
See Also



If you want to use a mixture of standard text fonts and symbol fonts you will need to use the Language property. The following code does just that.

[C#]Canvas canvas = new Canvas(300, 200, new XColor(Color.Yellow));
canvas.TextFont = "Times";
canvas.TextSize = 24;
canvas.DrawText("Some text...", new XPoint(0,0), new DrawOptions(canvas));
canvas.Language = "Unicode";
canvas.TextFont = "Wingdings";
canvas.DrawText("Symbols.", new XPoint(0, 60), new DrawOptions(canvas));
canvas.Language = "Latin";
canvas.TextFont = "Times";
canvas.DrawText("Some more text...", new XPoint(0,120), new DrawOptions(canvas));

[Visual Basic]Dim canvas As New Canvas(300, 200, New XColor(Color.Yellow))
canvas.TextFont = "Times"
canvas.TextSize = 24
canvas.DrawText("Some text...", New XPoint(0, 0), New DrawOptions(canvas))
canvas.Language = "Unicode"
canvas.TextFont = "Wingdings"
canvas.DrawText("Symbols.", New XPoint(0, 60), New DrawOptions(canvas))
canvas.Language = "Latin"
canvas.TextFont = "Times"
canvas.DrawText("Some more text...", New XPoint(0, 120), New DrawOptions(canvas))

It produces the following output image: