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 pagechar
getChar()
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
- aString
object.shape
- aGeneralPath
object.advance
- aPoint2D.Float
object.
-
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
- aPDFPage
object.transform
- aAffineTransform
object.mode
- aInteger
object.- Returns:
- a
Point2D
object.
-
toString
-