AD
Administrator
Syncfusion Team
February 15, 2005 05:24 PM UTC
Hi Jose,
The following is the method used by the Diagram.FontStyle class to create it''s System.Drawing.Font object,
// FontStyle.CreateFont function
public Font CreateFont()
{
return new Font(this.Family, this.Size, this.Style, this.Unit);
}
FontStyle.Family is a string value representing the FontFamily.Name property, the FontStyle.Size equates to the font size, the FontStyle.Style value is the System.Drawing.FontStyle eqivalent for the font and the FontStyle.Unit is the GraphicsUnit unit of measure to be used by the new font.
You should initialize your Diagram.FontStyle object with values for the listed properties that will correctly reflect the System.Drawing.Font that you want.
Prakash
Syncfusion, Inc.,