org.apache.pdfbox.pdmodel.font
Class PDType1AfmPfbFont
java.lang.Object
org.apache.pdfbox.pdmodel.font.PDFont
org.apache.pdfbox.pdmodel.font.PDSimpleFont
org.apache.pdfbox.pdmodel.font.PDType1Font
org.apache.pdfbox.pdmodel.font.PDType1AfmPfbFont
- All Implemented Interfaces:
- COSObjectable
public class PDType1AfmPfbFont
- extends PDType1Font
This is implementation of the Type1 Font with a afm and a pfb file.
- Version:
- $Revision: 1.5 $
- Author:
- Michael Niedermair
| Fields inherited from class org.apache.pdfbox.pdmodel.font.PDType1Font |
COURIER, COURIER_BOLD, COURIER_BOLD_OBLIQUE, COURIER_OBLIQUE, HELVETICA, HELVETICA_BOLD, HELVETICA_BOLD_OBLIQUE, HELVETICA_OBLIQUE, SYMBOL, TIMES_BOLD, TIMES_BOLD_ITALIC, TIMES_ITALIC, TIMES_ROMAN, ZAPF_DINGBATS |
|
Method Summary |
void |
clear()
Calling this will release all cached information. |
| Methods inherited from class org.apache.pdfbox.pdmodel.font.PDSimpleFont |
drawString, getAverageFontWidth, getFontBoundingBox, getFontHeight, getFontWidth, getSpaceWidth, getToUnicode, isFontSubstituted, setIsFontSubstituted, setToUnicode, writeFont |
| Methods inherited from class org.apache.pdfbox.pdmodel.font.PDFont |
clearResources, 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, setWidths |
PDType1AfmPfbFont
public PDType1AfmPfbFont(PDDocument doc,
String afmname)
throws IOException
- Create a new object.
- Parameters:
doc - The PDF document that will hold the embedded font.afmname - The font filename.
- Throws:
IOException - If there is an error loading the data.
PDType1AfmPfbFont
public PDType1AfmPfbFont(PDDocument doc,
InputStream afm,
InputStream pfb)
throws IOException
- Create a new object.
- Parameters:
doc - The PDF document that will hold the embedded font.afm - The afm input.pfb - The pfb input.
- Throws:
IOException - If there is an error loading the data.
clear
public void clear()
- Description copied from class:
PDFont
- Calling this will release all cached information.
- Overrides:
clear in class PDType1Font
Copyright © 2002-2014 The Apache Software Foundation. All Rights Reserved.