COSObjectablePDMMType1Font, PDType1AfmPfbFontpublic class PDType1Font extends PDSimpleFont
| Modifier and Type | Field | Description |
|---|---|---|
static PDType1Font |
COURIER |
Standard Base 14 Font.
|
static PDType1Font |
COURIER_BOLD |
Standard Base 14 Font.
|
static PDType1Font |
COURIER_BOLD_OBLIQUE |
Standard Base 14 Font.
|
static PDType1Font |
COURIER_OBLIQUE |
Standard Base 14 Font.
|
static PDType1Font |
HELVETICA |
Standard Base 14 Font.
|
static PDType1Font |
HELVETICA_BOLD |
Standard Base 14 Font.
|
static PDType1Font |
HELVETICA_BOLD_OBLIQUE |
Standard Base 14 Font.
|
static PDType1Font |
HELVETICA_OBLIQUE |
Standard Base 14 Font.
|
static PDType1Font |
SYMBOL |
Standard Base 14 Font.
|
static PDType1Font |
TIMES_BOLD |
Standard Base 14 Font.
|
static PDType1Font |
TIMES_BOLD_ITALIC |
Standard Base 14 Font.
|
static PDType1Font |
TIMES_ITALIC |
Standard Base 14 Font.
|
static PDType1Font |
TIMES_ROMAN |
Standard Base 14 Font.
|
static PDType1Font |
ZAPF_DINGBATS |
Standard Base 14 Font.
|
cmap, cmapObjects, font, fontMatrix, resourceRootCMAP, toUnicodeCmap| Constructor | Description |
|---|---|
PDType1Font() |
Constructor.
|
PDType1Font(java.lang.String baseFont) |
Constructor.
|
PDType1Font(COSDictionary fontDictionary) |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
clear() |
Calling this will release all cached information.
|
protected void |
determineEncoding() |
Determines the encoding for the font.
|
java.lang.String |
encode(byte[] c,
int offset,
int length) |
This will perform the encoding of a character if needed.
|
int |
encodeToCID(byte[] c,
int offset,
int length) |
|
java.awt.Font |
getawtFont() |
Looks up, creates, returns the AWT Font.
|
PDMatrix |
getFontMatrix() |
This will get the matrix that is used to transform glyph space to
text space.
|
static java.lang.String[] |
getStandard14Names() |
This will get the names of the standard 14 fonts.
|
static PDType1Font |
getStandardFont(java.lang.String name) |
A convenience method to get one of the standard 14 font from name.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitclearResources, cmapEncoding, drawString, equals, getAFM, getAverageFontWidthFromAFMFile, getBaseFont, getCodeFromArray, getCOSObject, getEncoding, getFirstChar, getFontDescriptor, getFontEncoding, getFontWidth, getFontWidthFromAFMFile, getLastChar, getStringFromArray, getStringWidth, getSubType, getToUnicodeCMap, getType, getWidths, hashCode, hasToUnicode, isSymbolicFont, isType0Font, isType1Font, isType3Font, parseCmap, setBaseFont, setEncoding, setFirstChar, setFontDescriptor, setFontEncoding, setHasToUnicode, setLastChar, setWidthsdrawString, getAverageFontWidth, getFontBoundingBox, getFontHeight, getFontWidth, getSpaceWidth, getToUnicode, isFontSubstituted, setIsFontSubstituted, setToUnicode, writeFontpublic static final PDType1Font TIMES_ROMAN
public static final PDType1Font TIMES_BOLD
public static final PDType1Font TIMES_ITALIC
public static final PDType1Font TIMES_BOLD_ITALIC
public static final PDType1Font HELVETICA
public static final PDType1Font HELVETICA_BOLD
public static final PDType1Font HELVETICA_OBLIQUE
public static final PDType1Font HELVETICA_BOLD_OBLIQUE
public static final PDType1Font COURIER
public static final PDType1Font COURIER_BOLD
public static final PDType1Font COURIER_OBLIQUE
public static final PDType1Font COURIER_BOLD_OBLIQUE
public static final PDType1Font SYMBOL
public static final PDType1Font ZAPF_DINGBATS
public PDType1Font()
public PDType1Font(COSDictionary fontDictionary)
fontDictionary - The font dictionary according to the PDF specification.public PDType1Font(java.lang.String baseFont)
baseFont - The base font for this font.public static PDType1Font getStandardFont(java.lang.String name)
name - The name of the font to get.public static java.lang.String[] getStandard14Names()
public java.awt.Font getawtFont()
throws java.io.IOException
getawtFont in class PDSimpleFontjava.io.IOException - if something went wrong.protected void determineEncoding()
PDSimpleFontdetermineEncoding in class PDSimpleFontpublic java.lang.String encode(byte[] c,
int offset,
int length)
throws java.io.IOException
public int encodeToCID(byte[] c,
int offset,
int length)
throws java.io.IOException
encodeToCID in class PDFontjava.io.IOExceptionpublic PDMatrix getFontMatrix()
getFontMatrix in class PDFont