com.groupdocs.watermark

Interfaces

Classes

Exceptions

com.groupdocs.watermark

Class Font



  • public final class Font
    extends Object

    Class representing a font.

    • Constructor Summary

      Constructors 
      Constructor and Description
      Font(String fontFamilyName, float size)
      Initializes a new instance of the Font class.
      Font(String fontFamilyName, float size, int style)
      Initializes a new instance of the Font class.
    • Constructor Detail

      • Font

        public Font(String fontFamilyName,
            float size)

        Initializes a new instance of the Font class.

        Parameters:
        fontFamilyName - The font family name.
        size - The size of the new font.
      • Font

        public Font(String fontFamilyName,
            float size,
            int style)

        Initializes a new instance of the Font class.

        Parameters:
        fontFamilyName - The font family name.
        size - The size of the new font.
        style - The style of the new font.
    • Method Detail

      • getFamilyName

        public final String getFamilyName()

        Gets the family name of this Font.

        Returns:
        The family name of this Font.
      • getSize

        public final float getSize()

        Gets the size of this Font.

        Returns:
        The size of this Font.
      • getStyle

        public final int getStyle()

        Gets the style information for this Font.

        Returns:
        The style of this Font. Default value is FontStyle.Regular (normal text).
      • getBold

        public final boolean getBold()

        Gets a value indicating whether the font is bold.

        Returns:
        True if this font is bold; otherwise, false.
      • getItalic

        public final boolean getItalic()

        Gets a value indicating whether the font is italic.

        Returns:
        True if this font is italic; otherwise, false.
      • getStrikeout

        public final boolean getStrikeout()

        Gets a value indicating whether the font specifies a horizontal line through the font.

        Returns:
        True if this font specifies a horizontal line through the font; otherwise, false.
      • getUnderline

        public final boolean getUnderline()

        Gets a value indicating whether the font is underlined.

        Returns:
        True if this font is underlined; otherwise, false.