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:
| 参数 | 类型 | 描述 |
|---|---|---|
| font | Font | 要转换的 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:
| 参数 | 类型 | 描述 |
|---|---|---|
| font | Font | 要转换的 Font。 |
| fontUnit | int | 新的图形单位 |
Returns:
Font - The converted System.Drawing.Font.