public class PdfFont
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static PdfFont |
COURIER |
static PdfFont |
HELVETICA |
static PdfFont |
SYMBOL |
static PdfFont |
TIMES_ROMAN |
static PdfFont |
ZAPF_DINGBATS |
| Constructor and Description |
|---|
PdfFont(java.lang.String basename) |
| Modifier and Type | Method and Description |
|---|---|
void |
addStyle(java.lang.String style,
org.apache.pdfbox.pdmodel.font.PDFont pf) |
java.lang.String |
getBasename() |
static PdfFont |
getFont(java.lang.String fontName)
NOTE: this is kind of a hack, but since PdfBox doesn't expose the constructor
org.apache.pdfbox.pdmodel.font.PDType1Font#PDType1Font(java.lang.String), it is necessary.
|
org.apache.pdfbox.pdmodel.font.PDFont |
getStyle(java.lang.String style) |
static PdfFont |
registerFont(org.apache.pdfbox.pdmodel.font.PDType0Font font) |
public static final PdfFont HELVETICA
public static final PdfFont TIMES_ROMAN
public static final PdfFont COURIER
public static final PdfFont SYMBOL
public static final PdfFont ZAPF_DINGBATS
public void addStyle(java.lang.String style,
org.apache.pdfbox.pdmodel.font.PDFont pf)
public static PdfFont registerFont(org.apache.pdfbox.pdmodel.font.PDType0Font font)
public static PdfFont getFont(java.lang.String fontName)
fontName - One of the standard 14 font names defined by PostScript or of a font registered with registerFont(PDFont)public org.apache.pdfbox.pdmodel.font.PDFont getStyle(java.lang.String style)
public java.lang.String getBasename()