Class FontCharacteristics

java.lang.Object
com.itextpdf.layout.font.FontCharacteristics

public final class FontCharacteristics extends Object
  • Constructor Details

    • FontCharacteristics

      public FontCharacteristics()
    • FontCharacteristics

      public FontCharacteristics (FontCharacteristics other)
  • Method Details

    • setFontWeight

      public FontCharacteristics setFontWeight (short fw)
      Sets preferred font weight
      Parameters:
      fw - font weight in css notation.
      Returns:
      this instance.
      See Also:
    • setFontWeight

      public FontCharacteristics setFontWeight (String fw)
    • setBoldFlag

      public FontCharacteristics setBoldFlag (boolean isBold)
    • setItalicFlag

      public FontCharacteristics setItalicFlag (boolean isItalic)
    • setMonospaceFlag

      public FontCharacteristics setMonospaceFlag (boolean isMonospace)
    • setFontStyle

      public FontCharacteristics setFontStyle (String fs)
      Set font style
      Parameters:
      fs - shall be 'normal', 'italic' or 'oblique'.
      Returns:
      this element
    • isItalic

      public boolean isItalic()
    • isBold

      public boolean isBold()
    • isMonospace

      public boolean isMonospace()
    • getFontWeight

      public short getFontWeight()
    • isUndefined

      public boolean isUndefined()
    • equals

      public boolean equals (Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object