public class PDType3Font extends PDSimpleFont
cmap, cmapObjects, font, fontMatrix, resourceRootCMAP, toUnicodeCmap| Constructor and Description |
|---|
PDType3Font()
Constructor.
|
PDType3Font(COSDictionary fontDictionary)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
drawString(String string,
int[] codePoints,
Graphics g,
float fontSize,
AffineTransform at,
float x,
float y)
This will draw a string on a canvas using the font.
|
void |
setFontMatrix(PDMatrix matrix)
Set the font matrix for this type3 font.
|
determineEncoding, getAverageFontWidth, getawtFont, getFontBoundingBox, getFontHeight, getFontWidth, getSpaceWidth, getToUnicode, isFontSubstituted, setIsFontSubstituted, setToUnicode, writeFontclear, clearResources, cmapEncoding, drawString, encode, encodeToCID, equals, getAFM, getAverageFontWidthFromAFMFile, getBaseFont, getCodeFromArray, getCOSObject, getEncoding, getFirstChar, getFontDescriptor, getFontEncoding, getFontMatrix, getFontWidth, getFontWidthFromAFMFile, getLastChar, getStringFromArray, getStringWidth, getSubType, getToUnicodeCMap, getType, getWidths, hashCode, hasToUnicode, isSymbolicFont, isType0Font, isType1Font, isType3Font, parseCmap, setBaseFont, setEncoding, setFirstChar, setFontDescriptor, setFontEncoding, setHasToUnicode, setLastChar, setWidthspublic PDType3Font()
public PDType3Font(COSDictionary fontDictionary)
fontDictionary - The font dictionary according to the PDF specification.public void drawString(String string, int[] codePoints, Graphics g, float fontSize, AffineTransform at, float x, float y) throws IOException
drawString in class PDSimpleFontstring - The string to draw.codePoints - The codePoints of the given string.g - The graphics to draw onto.fontSize - The size of the font to draw.at - The transformation matrix with all information for scaling and shearing of the font.x - The x coordinate to draw at.y - The y coordinate to draw at.IOException - If there is an error drawing the specific string.public void setFontMatrix(PDMatrix matrix)
matrix - The font matrix for this type3 font.Copyright © 2002-2015 The Apache Software Foundation. All Rights Reserved.