COSObjectable
public class PDCIDFontType0Font extends PDCIDFont
cmap, cmapObjects, font, fontMatrix, resourceRootCMAP, toUnicodeCmap
Constructor | Description |
---|---|
PDCIDFontType0Font() |
Constructor.
|
PDCIDFontType0Font(COSDictionary fontDictionary) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
java.awt.Font |
getawtFont() |
Returns the AWT font that corresponds with this CIDFontType0 font.
|
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 PDCIDFontType0Font()
public PDCIDFontType0Font(COSDictionary fontDictionary)
fontDictionary
- The font dictionary according to the PDF specification.public java.awt.Font getawtFont() throws java.io.IOException
PDType1CFont
class. Ideally
the embedded font would be used always if available, but since the
code doesn't work correctly for all fonts yet we opt to use the
system font by default.getawtFont
in class PDSimpleFont
null
if not availablejava.io.IOException
- if something went wrong.