com.groupdocs.parser

Interfaces

Classes

Exceptions

com.groupdocs.parser

Class Font



  • public final class Font
    extends Object

    Provides a font.

    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static Font EMPTY
      An empty font.
    • Constructor Summary

      Constructors 
      Constructor and Description
      Font(String name, double size, boolean isItalic, boolean isBold)
      Initializes a new instance of the Font class.
    • Field Detail

      • EMPTY

        public static final Font EMPTY

        An empty font.

    • Constructor Detail

      • Font

        public Font(String name,
            double size,
            boolean isItalic,
            boolean isBold)

        Initializes a new instance of the Font class.

        Parameters:
        name - A name of the font.
        size - A size of the font.
        isItalic - A value indicating whether the text is italic; otherwise, false.
        isBold - A value indicating whether the text is bold; otherwise, false.
    • Method Detail

      • getName

        public String getName()

        Gets a name of the font.

        Returns:
        A string that represents a name of the font.
      • getSize

        public double getSize()

        Gets a size of the text.

        Returns:
        A double value that represents a size of the font.
      • isItalic

        public boolean isItalic()

        Gets a value indicating whether text is italic.

        Returns:
        A boolean true if text is italic; otherwise, false.
      • isBold

        public boolean isBold()

        Gets a value indicating whether text is bold.

        Returns:
        A boolean true if text is bold; otherwise, false.
      • equals

        public boolean equals(Font other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object