@Immutable public final class PreloadFont extends Object implements com.helger.commons.id.IHasID<String>
PDFont is not Serializable.| Modifier and Type | Field and Description |
|---|---|
static PreloadFont |
MONOSPACE
PDF built-in font Courier regular
|
static PreloadFont |
MONOSPACE_BOLD
PDF built-in font Courier bold
|
static PreloadFont |
MONOSPACE_BOLD_ITALIC
PDF built-in font Courier bold and italic
|
static PreloadFont |
MONOSPACE_ITALIC
PDF built-in font Courier italic
|
static PreloadFont |
REGULAR
PDF built-in font Helvetica regular
|
static PreloadFont |
REGULAR_BOLD
PDF built-in font Helvetica bold
|
static PreloadFont |
REGULAR_BOLD_ITALIC
PDF built-in font Helvetica bold and italic
|
static PreloadFont |
REGULAR_ITALIC
PDF built-in font Helvetica italic
|
static PreloadFont |
SYMBOL
PDF built-in font Symbol
|
static PreloadFont |
TIMES
PDF built-in font Times Roman regular
|
static PreloadFont |
TIMES_BOLD
PDF built-in font Times Roman bold
|
static PreloadFont |
TIMES_BOLD_ITALIC
PDF built-in font Times Roman bold italic
|
static PreloadFont |
TIMES_ITALIC
PDF built-in font Times Roman italic
|
static PreloadFont |
ZAPF_DINGBATS
PDF built-in font Zapf Dingbats
|
| Modifier and Type | Method and Description |
|---|---|
static PreloadFont |
createEmbedding(com.helger.font.api.IFontResource aFontRes) |
static PreloadFont |
createNonEmbedding(com.helger.font.api.IFontResource aFontRes) |
static PreloadFont |
createPredefined(org.apache.pdfbox.pdmodel.font.PDType1Font aFont) |
boolean |
equals(Object o) |
String |
getID() |
int |
hashCode() |
org.apache.pdfbox.pdmodel.font.PDFont |
loadPDFont(org.apache.pdfbox.pdmodel.PDDocument aDoc)
Load the
PDFont associated to this preload font. |
String |
toString() |
public static final PreloadFont REGULAR
public static final PreloadFont REGULAR_BOLD
public static final PreloadFont REGULAR_ITALIC
public static final PreloadFont REGULAR_BOLD_ITALIC
public static final PreloadFont MONOSPACE
public static final PreloadFont MONOSPACE_BOLD
public static final PreloadFont MONOSPACE_ITALIC
public static final PreloadFont MONOSPACE_BOLD_ITALIC
public static final PreloadFont TIMES
public static final PreloadFont TIMES_BOLD
public static final PreloadFont TIMES_ITALIC
public static final PreloadFont TIMES_BOLD_ITALIC
public static final PreloadFont SYMBOL
public static final PreloadFont ZAPF_DINGBATS
@Nonnull @Nonempty public String getID()
getID in interface com.helger.commons.id.IHasID<String>@Nonnull public org.apache.pdfbox.pdmodel.font.PDFont loadPDFont(@Nonnull org.apache.pdfbox.pdmodel.PDDocument aDoc) throws IOException
PDFont associated to this preload font. This class uses no
caching!aDoc - The PDDocument to which the font should be attached to. May
not be null.IOException - In case loading the external file fails@Nonnull public static PreloadFont createPredefined(@Nonnull org.apache.pdfbox.pdmodel.font.PDType1Font aFont)
@Nonnull public static PreloadFont createNonEmbedding(@Nonnull com.helger.font.api.IFontResource aFontRes)
@Nonnull public static PreloadFont createEmbedding(@Nonnull com.helger.font.api.IFontResource aFontRes)
Copyright © 2014–2016 Philip Helger. All rights reserved.