using IronSoftware.Drawing;
// Create a new Font object
Font font = new Font("Times New Roman", FontStyle.Italic | FontStyle.Bold, 30);
// Casting between System.Drawing.Font and IronSoftware.Drawing.Font
System.Drawing.Font drawingFont = new System.Drawing.Font("Courier New", 30);
Font ironFont = drawingFont;
var fontf = ironFont.FamilyName;
var style = ironFont.Style;
var sizef = ironFont.Size;
var isItalic = ironFont.Italic;
var isBold = ironFont.Bold;
Imports IronSoftware.Drawing
' Create a new Font object
Private font As New Font("Times New Roman", FontStyle.Italic Or FontStyle.Bold, 30)
' Casting between System.Drawing.Font and IronSoftware.Drawing.Font
Private drawingFont As New System.Drawing.Font("Courier New", 30)
Private ironFont As Font = drawingFont
Private fontf = ironFont.FamilyName
Private style = ironFont.Style
Private sizef = ironFont.Size
Private isItalic = ironFont.Italic
Private isBold = ironFont.Bold