Package org.loboevolution.pdfview.font
Class PDFGlyph
java.lang.Object
org.loboevolution.pdfview.font.PDFGlyph
A single glyph in a stream of PDF text, which knows how to write itself
onto a PDF command stream
-
Constructor Summary
ConstructorsConstructorDescriptionPDFGlyph(char src, String name, GeneralPath shape, Point2D.Float advance) Creates a new instance of PDFGlyph based on a shapeCreates a new instance of PDFGlyph based on a page -
Method Summary
Modifier and TypeMethodDescriptionaddCommands(PDFPage cmds, AffineTransform transform, int mode) Add commands for this glyph to a pagechargetChar()Get the character code of this glyphtoString()
-
Constructor Details
-
PDFGlyph
Creates a new instance of PDFGlyph based on a shape- Parameters:
src- a char.name- aStringobject.shape- aGeneralPathobject.advance- aPoint2D.Floatobject.
-
PDFGlyph
Creates a new instance of PDFGlyph based on a page
-
-
Method Details
-
getChar
public char getChar()Get the character code of this glyph- Returns:
- a char.
-
addCommands
Add commands for this glyph to a page- Parameters:
cmds- aPDFPageobject.transform- aAffineTransformobject.mode- aIntegerobject.- Returns:
- a
Point2Dobject.
-
toString
-