IRONSOFTWAREHOME
创建字体
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
Dim font As New Font("Times New Roman", FontStyle.Italic Or FontStyle.Bold, 30)

' Casting between System.Drawing.Font and IronSoftware.Drawing.Font
Dim drawingFont As New System.Drawing.Font("Courier New", 30)
Dim ironFont As Font = drawingFont

Dim fontf = ironFont.FamilyName
Dim style = ironFont.Style
Dim sizef = ironFont.Size
Dim isItalic = ironFont.Italic
Dim isBold = ironFont.Bold
NuGet Download
PM > Install-Package IronSoftware.System.Drawing
创建字体

创建字体

准备开始了吗?

Nuget Downloads 20,274,271版本:2026.11刚刚发布

Key in blue circle

立即获取免费的 30 天试用版密钥。

Your trial license will be sent to your email address

无任何限制。100% 解锁。无需信用卡。

bullet_checked无需信用卡或创建账户无任何限制。100% 解锁。无需信用卡。
  • Logo Aetna
  • Logo NASA
  • Logo GE
  • Logo Porsche
  • Logo USDA
  • Logo Qatar
Join Millions of Engineers who’ve tried IronDrawing
获取您的无义务咨询
您的资料将始终保密。
  • Logo Aetna
  • Logo NASA
  • Logo GE
  • Logo Porsche
  • Logo USDA
  • Logo Qatar
深受全球数百万工程师信赖
立即获取您的免费30 天试用密钥。
无需信用卡或创建账户