COSObjectable
public class PDCIDFontType2Font extends PDCIDFont
cmap, cmapObjects, font, fontMatrix, resourceRootCMAP, toUnicodeCmap
Constructor | Description |
---|---|
PDCIDFontType2Font() |
Constructor.
|
PDCIDFontType2Font(COSDictionary fontDictionary) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
java.awt.Font |
getawtFont() |
Looks up, creates, returns the AWT Font.
|
boolean |
hasCIDToGIDMap() |
Indicates if this font has a CIDToGIDMap.
|
int |
mapCIDToGID(int cid) |
Maps the given CID to the correspondent GID.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
clear, determineEncoding, encode, getAverageFontWidth, getDefaultWidth, getFontBoundingBox, getFontHeight, getFontWidth, getFontWidth, setDefaultWidth
clearResources, cmapEncoding, drawString, encodeToCID, equals, getAFM, getAverageFontWidthFromAFMFile, getBaseFont, getCodeFromArray, getCOSObject, getEncoding, getFirstChar, getFontDescriptor, getFontEncoding, getFontMatrix, getFontWidthFromAFMFile, getLastChar, getStringFromArray, getStringWidth, getSubType, getToUnicodeCMap, getType, getWidths, hashCode, hasToUnicode, isSymbolicFont, isType0Font, isType1Font, isType3Font, parseCmap, setBaseFont, setEncoding, setFirstChar, setFontDescriptor, setFontEncoding, setHasToUnicode, setLastChar, setWidths
drawString, getSpaceWidth, getToUnicode, isFontSubstituted, setIsFontSubstituted, setToUnicode, writeFont
public PDCIDFontType2Font()
public PDCIDFontType2Font(COSDictionary fontDictionary)
fontDictionary
- The font dictionary according to the PDF specification.public java.awt.Font getawtFont() throws java.io.IOException
getawtFont
in class PDSimpleFont
java.io.IOException
- if something went wrong.public boolean hasCIDToGIDMap()
public int mapCIDToGID(int cid)
cid
- the given CID