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
Install-Package IronSoftware.System.Drawing
Create Font
Related Docs Links
1510001
Now that you’ve downloaded IronPDF
Want to deploy IronPDF to a live project for FREE?
Not ready to buy?
Want to deploy IronDrawing to a live project for FREE?
What’s included?
Test in production without watermarks
30 days fully functional product
24/5 technical support during trial
Get your free 30-day Trial Key instantly.
Thank you. If you'd like to speak to our licensing team: