org.pdfbox.pdmodel.font
Class PDType3Font
- COSObjectable
This is implementation of the Type3 Font.
void | drawString(String string, Graphics g, float fontSize, 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.
|
clearResources, drawString, encode, equals, getAFM, getAverageFontWidth, getAverageFontWidthFromAFMFile, getBaseFont, getCOSObject, getCodeFromArray, getEncoding, getFirstChar, getFontBoundingBox, getFontHeight, getFontMatrix, getFontWidth, getFontWidthFromAFMFile, getLastChar, getStringWidth, getSubType, getType, getWidths, hashCode, setBaseFont, setEncoding, setFirstChar, setLastChar, setWidths |
PDType3Font
public PDType3Font()
Constructor.
PDType3Font
public PDType3Font(COSDictionary fontDictionary)
Constructor.
fontDictionary - The font dictionary according to the PDF specification.
drawString
public void drawString(String string,
Graphics g,
float fontSize,
float x,
float y)
throws IOException This will draw a string on a canvas using the font.
string - The string to draw.g - The graphics to draw onto.fontSize - The size of the font to draw.x - The x coordinate to draw at.y - The y coordinate to draw at.
setFontMatrix
public void setFontMatrix(PDMatrix matrix)
Set the font matrix for this type3 font.
matrix - The font matrix for this type3 font.