|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.pdfbox.pdmodel.font.PDFont
org.pdfbox.pdmodel.font.PDSimpleFont
org.pdfbox.pdmodel.font.PDType3Font
This is implementation of the Type3 Font.
| Constructor Summary | |
PDType3Font()
Constructor. |
|
PDType3Font(COSDictionary fontDictionary)
Constructor. |
|
| Method Summary | |
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. |
| Methods inherited from class org.pdfbox.pdmodel.font.PDSimpleFont |
drawString, getAverageFontWidth, getFontBoundingBox, getFontDescriptor, getFontWidth, getToUnicode, setFontDescriptor, setToUnicode |
| Methods inherited from class org.pdfbox.pdmodel.font.PDFont |
clearResources, encode, equals, getBaseFont, getCOSObject, getEncoding, getFirstChar, getFontMatrix, getLastChar, getStringWidth, getSubType, getType, getWidths, hashCode, setBaseFont, setEncoding, setFirstChar, setLastChar, setWidths |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PDType3Font()
public PDType3Font(COSDictionary fontDictionary)
fontDictionary - The font dictionary according to the PDF specification.| Method Detail |
public void drawString(String string,
Graphics g,
float fontSize,
float x,
float y)
throws IOException
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.
IOException - If there is an error drawing the image on the screen.public void setFontMatrix(PDMatrix matrix)
matrix - The font matrix for this type3 font.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||