Class FontExtensions

Class FontExtensions

Namespace: Aspose.Imaging.Extensions
Assembly: Aspose.Imaging.dll (25.2.0)

Contains extension methods for the Aspose.Imaging.Font class.

public static class FontExtensions

Inheritance

objectFontExtensions

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Methods

ToGdiFont(Font)

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

public static Font ToGdiFont(Font font)

Parameters

font Font

The Aspose.Imaging.Font to convert.

Returns

Font

The converted System.Drawing.Font.

ToGdiFont(Font, GraphicsUnit)

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

public static Font ToGdiFont(Font font, GraphicsUnit fontUnit)

Parameters

font Font

The Aspose.Imaging.Font to convert.

fontUnit GraphicsUnit

New graphics unit

Returns

Font

The converted System.Drawing.Font.