Class PDFGlyph
java.lang.Object
org.openpdf.renderer.font.PDFGlyph
A single glyph in a stream of PDF text, which knows how to write itself
onto a PDF command stream
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Point2Dthe advance from this glyphprivate final Stringthe name of this glyphprivate PDFPagethe PDFPage storing this glyph's commands (for type 3 fonts)private GeneralPaththe shape represented by this glyph (for all fonts but type 3)private final charthe character code of this glyph -
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 glyphgetName()Get the name of this glyphgetPage()Get the PDFPage for a type3 font glyphgetShape()Get the shape of this glyphtoString()
-
Field Details
-
src
private final char srcthe character code of this glyph -
name
the name of this glyph -
advance
the advance from this glyph -
shape
the shape represented by this glyph (for all fonts but type 3) -
page
the PDFPage storing this glyph's commands (for type 3 fonts)
-
-
Constructor Details
-
PDFGlyph
Creates a new instance of PDFGlyph based on a shape -
PDFGlyph
-
-
Method Details
-
getChar
public char getChar()Get the character code of this glyph -
getName
Get the name of this glyph -
getShape
Get the shape of this glyph -
getPage
Get the PDFPage for a type3 font glyph -
addCommands
Add commands for this glyph to a page -
getAdvance
-
toString
-