com.aspose.tasks

Interfaces

Classes

Exceptions

Class FontDescriptor


  • public final class FontDescriptor
    extends Object

    Represents font information.

    • Constructor Detail

      • FontDescriptor

        public FontDescriptor​(String fontFamily,
                              float size)

        Initializes a new instance of the FontDescriptor class with the specified font family and size.

        Parameters:
        fontFamily - Name of the font family.
        size - Size of the font.
      • FontDescriptor

        public FontDescriptor​(String fontFamily,
                              float size,
                              int style)

        Initializes a new instance of the FontDescriptor class with the specified font family, size and style.

        Parameters:
        fontFamily - Name of the font family.
        size - Size of the font.
        style - Style of the font.
      • FontDescriptor

        public FontDescriptor​(FontDescriptor font,
                              int style)

        Initializes a new instance of the FontDescriptor class with the specified font and style.

        Parameters:
        font - Instance of FontDescriptor to copy.
        style - Style of the font.
    • Method Detail

      • getFontFamily

        public final String getFontFamily()

        Gets the name of the font's family.

        Returns:
        the name of the font's family.
      • getSize

        public final float getSize()

        Gets size of the font.

        Returns:
        size of the font.
      • getStyle

        public final int getStyle()

        Gets style of the font.

        Returns:
        style of the font.