IRONSOFTWARE
  • PRODUCTS
  • ENTERPRISE
  • FREE TOOLS
  • USE CASES
  • COMPANY
  • CONTACT US
205 N. Michigan Ave. Chicago, IL 60601, USA
+1 (312) 500-3060
CONTACT US
Icon Triangle related to 
									Create Font
  • Sales
  • Support
  • Partnerships
  • Corporate
Live Chat 24/5
    Icon Triangle related to 
									Create Font
  • English
  • Español
  • Deutsch
  • Français
  • 日本語
  • 简体中文
  • 繁體中文

Use Cases

Icon Triangle related to Use Cases
  • Customers Case Studies
  • Industry White Papers

Company

Icon Triangle related to Company
  • About Us
    Icon Text Wearehiring related to Company
  • Company News
    Icon Text Wearehiring related to Company
  • Customers & Case Studies
    Icon Text Wearehiring related to Company
  • Environmental Commitments
    Icon Text Wearehiring related to Company
  • Startup Impact Grant
    Icon Text Wearehiring related to Company
  • Beta Program
    Icon Text Wearehiring related to Company
  • Year in Review: 2024
    Icon Text Wearehiring related to Company
  • Careers
    Icon Text Wearehiring related to Company
  • Consulting Partners
  • Content Creators
  • Resellers Partners
  • Technology Partners
  • Microsoft MVPs
  • Affiliates
  • Global Resellers
  • Consulting Partners
  • Merchant of Record
  • Trust Center
  • Sales
  • Support
  • Partnerships
  • Corporate
Live Chat 24/5

Products

Icon Triangle related to Products
Icon Logo Ironsuite related to Products

IRONSUITE

All 10 for the Price of 2

Save 80% with Iron Suite
Logo 1 Percent related to Products
Logo IronPDF
Logo IronPDF

Create, read, and edit PDFs

Logo IronPPT
Logo IronPPT

Edit PowerPoint Files. No Office Interop required

Logo IronQR
Logo IronQR

Read and write QR codes with ML detection

Logo IronWebscraper
Logo IronWebscraper

Extract structured data from website

Logo IronWord
Logo IronWord

Edit DOCX Word Files. No Office Interop required

Logo IronOCR
Logo IronOCR

Image to text in 125 languages

Logo IronPrint
Logo IronPrint

Customized Printing Files

Logo IronXL
Logo IronXL

Edit Excel & CSV Files. No Office Interop required

Logo IronBarcode
Logo IronBarcode

Read and write Barcodes

Logo IronZIP
Logo IronZIP

Zip and unzip archives

Enterprise

Icon Triangle related to Enterprise
Icon Logo Ironsuite related to Enterprise
Icon Text Ironsuite related to Enterprise

Enterprise Licensing

Icon Logo Ironsecuredoc related to Enterprise
Icon Text Ironsecuredoc related to Enterprise

PDF Security & Compliance

Free Tools

Icon Triangle related to Free Tools
Icon Logo Irondrawing related to Free Tools
Icon Text Irondrawing related to Free Tools

System.Drawing.Common Replacement

Icon Logo Ironfreetools related to Free Tools
Icon Text Ironfreetools related to Free Tools

Free Software Development Tools

IronDrawing - Library for .NET
  • Home
  • Docs
    • Get Started
    • Features
    • Code Examples
    • API Reference  
Start for Free
NuGet Download Start Free Trial
Logo Icon related to 
									Create Font
IronDrawing - Library for .NET
for
.NET
  • IRONSOFTWARE HOME
  • Mobile Product Menu

    PRODUCTS
    • IRONSUITE

    • IRONPDF
      UPDATED
    • IRONWORD
    • IRONXL
    • IRONPPT
    • IRONOCR
    • IRONBARCODE
    • IRONQR
    • IRONZIP
    • IRONPRINT
    • IRONWEBSCRAPER
  • Mobile Enterprise Menu

    ENTERPRISE
    • IRONSUITE ENTERPRISE
    • IRONSECUREDOC
  • Mobile Open Source Menu

    OPEN SOURCE
    • IRONDRAWING
    • IRONFREETOOLS
  • Miscellaneous

    ABOUT US
    • About Us
    • Company News
    • Customers
    • Environmental Commitments
    • Beta Program
    • Year in Review: 2024
    • Live Chat
    • Global Resellers
    • Join our team
  • CONTACT US
  • HOME
  • DOCS
    • Get Started
    • Features
    • Code Examples

    • API Reference  
Skip to footer content
IronDrawing Code Example
AnyBitmap
Bitmap to Stream Bitmap to String Cast to AnyBitmap Clone AnyBitmap Create Multipage TIFF and GIF Export AnyBitmap Generate AnyBitmap Get Frame From AnyBitmap Get Number of Frames In AnyBitmap Read Bytes from AnyBitmap Set Pixel
Color
Convert Color to 32-Bit ARGB Value Create Color Get Color Depth
Rectangle
Rectangle & RectangleF Convert Measurement Units Create and Cast Rectangle
Font
Create Font
Point
Point & PointF Offset Compare Two Points Get Hash Code Point Casting
Create Font
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
IronSoftware System related to 
									Create Font
Install-Package IronSoftware.System.Drawing

Create Font

Related Docs Links

Report an Issue on this page
15 1000 1
Nuget Logo
Now you've installed with Nuget
Your browser is now downloading IronDrawing

Next step: Start free 30-day Trial

No credit card required

  • Test in a live environment
  • Fully-functional product
  • 24/5 technical support
Get your free 30-day Trial Key instantly.
Thank you.
If you'd like to speak to our licensing team:

badge_greencheck_in_yellowcircle
The trial form was submitted
successfully.

Your trial key should be in the email.
If it is not, please contact
support@ironsoftware.com

Schedule a call
Have a question? Get in touch with our development team.
No credit card or account creation required
15 1000 1
Nuget Logo
Now you've installed with Nuget
Your browser is now downloading IronDrawing

Next step: Start free 30-day Trial

No credit card required

  • Test in a live environment
  • Fully-functional product
  • 24/5 technical support
Thank you.
View your license options:
Thank you.
If you'd like to speak to our licensing team:
View Licensing
Schedule a call
Have a question? Get in touch with our development team.
Have a question? Get in touch with our development team.
15 1000 1
Want to deploy Iron Suite 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
Iron Suite
Get your free 30-day Trial Key instantly.
Thank you.
If you'd like to speak to our licensing team:

badge_greencheck_in_yellowcircle
The trial form was submitted
successfully.

Your trial key should be in the email.
If it is not, please contact
support@ironsoftware.com

Schedule a call
Have a question? Get in touch with our development team.
No credit card or account creation required
15 1000 1
Nuget Logo
Now you've installed with Nuget
Your browser is now downloading IronDrawing

Next step: Start free 30-day Trial

No credit card required

  • Test in a live environment
  • Fully-functional product
  • 24/5 technical support
Download IronPDF free to apply
your Trial Licenses Key
Thank you.
If you'd like to speak to our licensing team:
View Licenses
Schedule a call
Licenses from $1,498. Have a question? Get in touch.
Have a question? Get in touch with our development team.
Experience the full power of IronDrawing Start Free Trial
Logo 1 Percent related to 
									Create Font
Textlogo Iron Suite related to 
									Create Font

10 .NET API products for your office documents

Get 10 products for the price of 2   Start Free Trial

Product Links

  • Icon Hash related to Product Links
    ironpdf_logo
    - Create, read, and edit PDFs. HTML to PDF for .NET.
  • Icon Hash related to Product Links
    ironword_logo
    - Edit DOCX Word Files. No Office Interop required.
  • Icon Hash related to Product Links
    ironxl_logo
    - Edit Excel & CSV files. No Office Interop required.
  • Icon Hash related to Product Links
    ironppt_logo
    - Create, read, and edit presentations. No Office Interop required.
  • Icon Hash related to Product Links
    ironocr_logo
    - OCR (extract text from images) in 125 languages.
  • Icon Hash related to Product Links
    ironbarcode_logo
    - Read and write QR & Barcodes.
  • Icon Hash related to Product Links
    ironqr_logo
    - Read and write QR codes.
  • Icon Hash related to Product Links
    ironzip_logo
    - Zip and unzip archives.
  • Icon Hash related to Product Links
    ironprint_logo
    - Print documents in .NET applications.
  • Icon Hash related to Product Links
    ironwebscraper_logo
    - Scrape structured data from websites.
  1. IronDrawing
  2. Code Examples
  3. Create and Cast Font
Back to top

Global Navigation Menu

Company Logo and Address

Iron Software
205 N. Michigan Ave. Chicago, IL 60601 USA +1 (312) 500-3060

Main Navigation Links

  • About Us
  • News
  • Customers
  • Careers
  • Academy
  • Webinars
  • Customer HUB Login
  • Contact Us
    • English
    • Español
    • Deutsch
    • Français
    • 日本語
    • 简体中文
    • 繁體中文

Social Media Links

  • Github related to Social Media Links
  • Youtube related to Social Media Links
  • Twitter X related to Social Media Links
  • Facebook related to Social Media Links
  • Linkedin related to Social Media Links
Slack Icon related to Social Media Links Join Iron Slack

Supporting Teamseas

Legal Information

Copyright © Iron Software 2013-2025