public class PDCIDFontType0Font extends PDCIDFont
cmap, cmapObjects, font, fontMatrix, resourceRootCMAP, toUnicodeCmap
Constructor and Description |
---|
PDCIDFontType0Font()
Constructor.
|
PDCIDFontType0Font(COSDictionary fontDictionary)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Font |
getawtFont()
Returns the AWT font that corresponds with this CIDFontType0 font.
|
determineEncoding, encode, getAverageFontWidth, getDefaultWidth, getFontBoundingBox, getFontHeight, getFontWidth, getFontWidth, setDefaultWidth
drawString, getSpaceWidth, getToUnicode, isFontSubstituted, setIsFontSubstituted, setToUnicode, writeFont
clearResources, cmapEncoding, drawString, encodeToCID, equals, getAFM, getAverageFontWidthFromAFMFile, getBaseFont, getCodeFromArray, getCOSObject, getEncoding, getFirstChar, getFontDescriptor, getFontEncoding, getFontMatrix, getFontWidthFromAFMFile, getLastChar, getStringWidth, getSubType, getToUnicodeCMap, getType, getWidths, hashCode, hasToUnicode, isSymbolicFont, isType0Font, isType1Font, isType3Font, parseCmap, setBaseFont, setEncoding, setFirstChar, setFontDescriptor, setFontEncoding, setHasToUnicode, setLastChar, setWidths
public PDCIDFontType0Font()
public PDCIDFontType0Font(COSDictionary fontDictionary)
fontDictionary
- The font dictionary according to the PDF specification.public Font getawtFont() throws 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 availableIOException
- if something went wrong.Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.