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
  • En
      Icon Triangle related to 
									Create Font
    • English
    • Español
    • Deutsch
    • Français
    • 日本語
    • 简体中文
    • 繁體中文
  • Icon Triangle related to 
									Create Font
    • Customers Case Studies
    • Industry White Papers
    Icon Triangle related to 
									Create Font
    • About Us
      Icon Text Wearehiring related to 
									Create Font
    • Company News
      Icon Text Wearehiring related to 
									Create Font
    • Customers & Case Studies
      Icon Text Wearehiring related to 
									Create Font
    • Environmental Commitments
      Icon Text Wearehiring related to 
									Create Font
    • Startup Impact Grant
      Icon Text Wearehiring related to 
									Create Font
    • Beta Program
      Icon Text Wearehiring related to 
									Create Font
    • Year in Review: 2024
      Icon Text Wearehiring related to 
									Create Font
    • Careers
      Icon Text Wearehiring related to 
									Create Font
    • Consulting Partners
    • Content Creators
    • Resellers Partners
    • Technology Partners
    • Microsoft MVPs
    • Affiliates
    • Global Resellers
    • Merchant of Record
    • Trust Center
    • Sales
    • Support
    • Partnerships
    • Corporate
    Live Chat 24/5
    Icon Triangle related to 
									Create Font
    Icon Logo Ironsuite related to 
									Create Font

    IRONSUITE

    All 10 for the Price of 2

    Save 80% with Iron Suite
    Logo 1 Percent related to 
									Create Font
    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 127 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

    Icon Triangle related to 
									Create Font
    Icon Logo Ironsuite related to 
									Create Font
    Icon Text Ironsuite related to 
									Create Font

    Enterprise Licensing

    Icon Logo Ironsecuredoc related to 
									Create Font
    Icon Text Ironsecuredoc related to 
									Create Font

    PDF Security & Compliance

    Icon Triangle related to 
									Create Font
    Icon Logo Irondrawing related to 
									Create Font
    Icon Text Irondrawing related to 
									Create Font

    System.Drawing.Common Replacement

    Icon Logo Ironfreetools related to 
									Create Font
    Icon Text Ironfreetools related to 
									Create Font

    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
    • PRODUCTS
      • IRONSUITE

      • IRONPDF
        UPDATED
      • IRONWORD
      • IRONXL
      • IRONPPT
      • IRONOCR
      • IRONBARCODE
      • IRONQR
      • IRONZIP
      • IRONPRINT
      • IRONWEBSCRAPER
    • ENTERPRISE
      • IRONSUITE ENTERPRISE
      • IRONSECUREDOC
    • OPEN SOURCE
      • IRONDRAWING
      • IRONFREETOOLS
    • 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  
    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
    • Icon Hash related to 
									Create Font
      ironpdf_logo
      - Create, read, and edit PDFs. HTML to PDF for .NET.
    • Icon Hash related to 
									Create Font
      ironword_logo
      - Edit DOCX Word Files. No Office Interop required.
    • Icon Hash related to 
									Create Font
      ironxl_logo
      - Edit Excel & CSV files. No Office Interop required.
    • Icon Hash related to 
									Create Font
      ironppt_logo
      - Create, read, and edit presentations. No Office Interop required.
    • Icon Hash related to 
									Create Font
      ironocr_logo
      - OCR (extract text from images) in 127 languages.
    • Icon Hash related to 
									Create Font
      ironbarcode_logo
      - Read and write QR & Barcodes.
    • Icon Hash related to 
									Create Font
      ironqr_logo
      - Read and write QR codes.
    • Icon Hash related to 
									Create Font
      ironzip_logo
      - Zip and unzip archives.
    • Icon Hash related to 
									Create Font
      ironprint_logo
      - Print documents in .NET applications.
    • Icon Hash related to 
									Create Font
      ironwebscraper_logo
      - Scrape structured data from websites.
    1% for the Planet

    10 .NET API products for your office documents

    Get 10 products for the price of 2
       Start Free Trial 
    • ironpdf_logo
      - Create, read, and edit PDFs. HTML to PDF for .NET.
    • ironword_logo
      - Edit DOCX Word Files. No Office Interop required.
    • ironxl_logo
      - Edit Excel & CSV files. No Office Interop required.
    • ironppt_logo
      - Create, read, and edit presentations. No Office Interop required.
    • ironocr_logo
      - OCR (extract text from images) in 127 languages.
    • ironbarcode_logo
      - Read and write QR & Barcodes.
    • ironqr_logo
      - Read and write QR codes.
    • ironzip_logo
      - Zip and unzip archives.
    • ironprint_logo
      - Print documents in .NET applications.
    • ironwebscraper_logo
      - Scrape structured data from websites.
    1. IronDrawing
    2. Code Examples
    3. Create and Cast Font
    Back to top
    Iron Software
    205 N. Michigan Ave. Chicago, IL 60601 USA +1 (312) 500-3060
    • About Us
    • News
    • Customers
    • Careers
    • Academy
    • Contact Us
    • English
      • English
      • Español
      • Deutsch
      • Français
      • 日本語
      • 简体中文
      • 繁體中文
    Github related to 
									Create Font									Youtube related to 
									Create Font									Twitter X related to 
									Create Font									Facebook related to 
									Create Font									Linkedin related to 
									Create Font
    Slack Icon related to 
									Create Font									Join Iron Slack

    Supporting Teamseas

    Copyright © Iron Software LLC 2013-2025