Packages

 

com.aspose.imaging.extensions

Class FontExtensions



  • public final class FontExtensions
    extends Object

    Contains extension methods for the Imaging.Font class.

    • Method Detail

      • toGdiFont

        public static Font toGdiFont(Font font)

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

        Parameters:
        font - The Imaging.Font to convert.
        Returns:
        The converted System.Drawing.Font.
      • toGdiFont

        public static Font toGdiFont(Font font,
                                     int fontUnit)

        Converts the Font to the System.Drawing.Font.

        Parameters:
        font - The Font to convert.
        fontUnit - New graphics unit
        Returns:
        The converted System.Drawing.Font.