com.groupdocs.watermark.legacy

Interfaces

Classes

Exceptions

com.groupdocs.watermark.legacy

Class Font


  • Deprecated.

    @Deprecated
    public final class Font
    extends Object

    Class representing a font.

    • Constructor Summary

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

      Methods 
      Modifier and Type Method and Description
      boolean getBold()
      Deprecated. 
      Gets a value indicating whether the font is bold.
      String getFamilyName()
      Deprecated. 
      Gets the family name of this Font.
      boolean getItalic()
      Deprecated. 
      Gets a value indicating whether the font is italic.
      float getSize()
      Deprecated. 
      Gets the size of this Font.
      boolean getStrikeout()
      Deprecated. 
      Gets a value indicating whether the font specifies a horizontal line through the font.
      int getStyle()
      Deprecated. 
      Gets the style information for this Font.
      boolean getUnderline()
      Deprecated. 
      Gets a value indicating whether the font is underlined.
    • Constructor Detail

      • Font

        public Font(String fontFamilyName,
            float size)
        Deprecated. 

        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)
        Deprecated. 

        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()
        Deprecated. 

        Gets the family name of this Font.

        Returns:
        The family name of this Font.
      • getSize

        public final float getSize()
        Deprecated. 

        Gets the size of this Font.

        Returns:
        The size of this Font.
      • getStyle

        public final int getStyle()
        Deprecated. 

        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()
        Deprecated. 

        Gets a value indicating whether the font is bold.

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

        public final boolean getItalic()
        Deprecated. 

        Gets a value indicating whether the font is italic.

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

        public final boolean getStrikeout()
        Deprecated. 

        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()
        Deprecated. 

        Gets a value indicating whether the font is underlined.

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