Package com.independentsoft.office.pdf
Class PdfSaveOptions.FontSource
java.lang.Object
com.independentsoft.office.pdf.PdfSaveOptions.FontSource
- Enclosing class:
- PdfSaveOptions
A registered font source.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]getData()Gets the font data or null when registered from a file path.Gets the font family name.Gets the file path or null when registered from bytes.booleanisBold()Gets whether this is the bold variant.booleanisItalic()Gets whether this is the italic variant.
-
Constructor Details
-
FontSource
public FontSource()
-
-
Method Details
-
getFamily
Gets the font family name.- Returns:
- the family name
-
isBold
public boolean isBold()Gets whether this is the bold variant.- Returns:
- true if bold
-
isItalic
public boolean isItalic()Gets whether this is the italic variant.- Returns:
- true if italic
-
getFilePath
Gets the file path or null when registered from bytes.- Returns:
- the file path
-
getData
public byte[] getData()Gets the font data or null when registered from a file path.- Returns:
- the font data
-