Class FontTypes

All Implemented Interfaces:
Comparable<Utils_CustomEnumeration>

public final class FontTypes extends Utils_CustomEnumeration
Supported PDF Fonts
  • Method Details

    • createCustomFont

      public static FontTypes createCustomFont(String Name, String FontFilePath)
      Create custom font types.
      Parameters:
      Name - the name
      FontFilePath - the font file (.ttf, .otf, etc.) path
      Returns:
      the font types
    • fromString

      public static FontTypes fromString(String FontNameOrFilePath)
      Gets FontTypes from font name or font file path.
      Parameters:
      FontNameOrFilePath - the font name or file path
      Returns:
      the font types
    • getArial

      public static FontTypes getArial()
      Gets arial.
      Returns:
      the arial
    • getArialBold

      public static FontTypes getArialBold()
      Gets arial bold.
      Returns:
      the arial bold
    • getArialBoldItalic

      public static FontTypes getArialBoldItalic()
      Gets arial bold italic.
      Returns:
      the arial bold italic
    • getArialItalic

      public static FontTypes getArialItalic()
      Gets arial italic.
      Returns:
      the arial italic
    • getCourier

      public static FontTypes getCourier()
      Gets courier.
      Returns:
      the courier
    • getCourierBoldOblique

      public static FontTypes getCourierBoldOblique()
      Gets courier bold oblique.
      Returns:
      the courier bold oblique
    • getCourierOblique

      public static FontTypes getCourierOblique()
      Gets courier oblique.
      Returns:
      the courier oblique
    • getCourierBold

      public static FontTypes getCourierBold()
      Gets courier bold.
      Returns:
      the courier bold
    • getCourierNew

      public static FontTypes getCourierNew()
      Gets courier new.
      Returns:
      the courier new
    • getCourierNewBold

      public static FontTypes getCourierNewBold()
      Gets courier new bold.
      Returns:
      the courier new bold
    • getCourierNewBoldItalic

      public static FontTypes getCourierNewBoldItalic()
      Gets courier new bold italic.
      Returns:
      the courier new bold italic
    • getCourierNewItalic

      public static FontTypes getCourierNewItalic()
      Gets courier new italic.
      Returns:
      the courier new italic
    • getHelvetica

      public static FontTypes getHelvetica()
      Gets helvetica.
      Returns:
      the helvetica
    • getHelveticaBold

      public static FontTypes getHelveticaBold()
      Gets helvetica bold.
      Returns:
      the helvetica bold
    • getHelveticaBoldOblique

      public static FontTypes getHelveticaBoldOblique()
      Gets helvetica bold oblique.
      Returns:
      the helvetica bold oblique
    • getHelveticaOblique

      public static FontTypes getHelveticaOblique()
      Gets helvetica oblique.
      Returns:
      the helvetica oblique
    • getSymbol

      public static FontTypes getSymbol()
      Gets symbol.
      Returns:
      the symbol
    • getTimesNewRoman

      public static FontTypes getTimesNewRoman()
      Gets times new roman.
      Returns:
      the times new roman
    • getTimesNewRomanBold

      public static FontTypes getTimesNewRomanBold()
      Gets times new roman bold.
      Returns:
      the times new roman bold
    • getTimesNewRomanBoldItalic

      public static FontTypes getTimesNewRomanBoldItalic()
      Gets times new roman bold italic.
      Returns:
      the times new roman bold italic
    • getTimesNewRomanItalic

      public static FontTypes getTimesNewRomanItalic()
      Gets times new roman italic.
      Returns:
      the times new roman italic
    • getZapfDingbats

      public static FontTypes getZapfDingbats()
      Gets zapf dingbats.
      Returns:
      the zapf dingbats
    • getCustomFontFilePath

      public String getCustomFontFilePath()
      Gets custom font file path. Only available when FontTypes object was created by createCustomFont(String, String)
      Returns:
      the custom font file path