FontExtensions

Inheritance: java.lang.Object

public final class FontExtensions

包含针对 Imaging.Font 类的扩展方法。

方法

方法描述
toGdiFont(Font font)Imaging.Font 转换为 System.Drawing.Font
toGdiFont(Font font, int fontUnit)Font 转换为 System.Drawing.Font

toGdiFont(Font font)

public static Font toGdiFont(Font font)

Imaging.Font 转换为 System.Drawing.Font

Parameters:

参数类型描述
fontFont要转换的 Imaging.Font

Returns: Font - The converted System.Drawing.Font.

toGdiFont(Font font, int fontUnit)

public static Font toGdiFont(Font font, int fontUnit)

Font 转换为 System.Drawing.Font

Parameters:

参数类型描述
fontFont要转换的 Font
fontUnitint新的图形单位

Returns: Font - The converted System.Drawing.Font.