Package com.ironsoftware.ironpdf.font
Class FontTypes
- java.lang.Object
-
- com.ironsoftware.ironpdf.internal.staticapi.Utils_CustomEnumeration
-
- com.ironsoftware.ironpdf.font.FontTypes
-
- All Implemented Interfaces:
Comparable<Utils_CustomEnumeration>
public final class FontTypes extends Utils_CustomEnumeration
Supported PDF Fonts
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FontTypes
createCustomFont(String Name, String FontFilePath)
Create custom font types.static FontTypes
fromString(String FontNameOrFilePath)
Gets FontTypes from font name or font file path.static FontTypes
getArial()
Gets arial.static FontTypes
getArialBold()
Gets arial bold.static FontTypes
getArialBoldItalic()
Gets arial bold italic.static FontTypes
getArialItalic()
Gets arial italic.static FontTypes
getCourier()
Gets courier.static FontTypes
getCourierBold()
Gets courier bold.static FontTypes
getCourierBoldOblique()
Gets courier bold oblique.static FontTypes
getCourierNew()
Gets courier new.static FontTypes
getCourierNewBold()
Gets courier new bold.static FontTypes
getCourierNewBoldItalic()
Gets courier new bold italic.static FontTypes
getCourierNewItalic()
Gets courier new italic.static FontTypes
getCourierOblique()
Gets courier oblique.String
getCustomFontFilePath()
Gets custom font file path.static FontTypes
getHelvetica()
Gets helvetica.static FontTypes
getHelveticaBold()
Gets helvetica bold.static FontTypes
getHelveticaBoldOblique()
Gets helvetica bold oblique.static FontTypes
getHelveticaOblique()
Gets helvetica oblique.static FontTypes
getSymbol()
Gets symbol.static FontTypes
getTimesNewRoman()
Gets times new roman.static FontTypes
getTimesNewRomanBold()
Gets times new roman bold.static FontTypes
getTimesNewRomanBoldItalic()
Gets times new roman bold italic.static FontTypes
getTimesNewRomanItalic()
Gets times new roman italic.static FontTypes
getZapfDingbats()
Gets zapf dingbats.
-
-
-
Method Detail
-
createCustomFont
public static FontTypes createCustomFont(String Name, String FontFilePath)
Create custom font types.- Parameters:
Name
- the nameFontFilePath
- 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 bycreateCustomFont(String, String)
- Returns:
- the custom font file path
-
-