FontExtensions

Inheritance: java.lang.Object

public final class FontExtensions

Contains extension methods for the Imaging.Font class.

Methods

MethodDescription
toGdiFont(Font font)Converts the Imaging.Font to the System.Drawing.Font.
toGdiFont(Font font, int fontUnit)Converts the Font to the System.Drawing.Font.

toGdiFont(Font font)

public static Font toGdiFont(Font font)

Converts the Imaging.Font to the System.Drawing.Font.

Parameters:

ParameterTypeDescription
fontFontThe Imaging.Font to convert.

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

toGdiFont(Font font, int fontUnit)

public static Font toGdiFont(Font font, int fontUnit)

Converts the Font to the System.Drawing.Font.

Parameters:

ParameterTypeDescription
fontFontThe Font to convert.
fontUnitintNew graphics unit

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