Package com.sun.pdfview.font
Class PDFGlyph
java.lang.Object
com.sun.pdfview.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 Point2D
the advance from this glyphprivate String
the name of this glyphprivate PDFPage
the PDFPage storing this glyph's commands (for type 3 fonts)private GeneralPath
the shape represented by this glyph (for all fonts but type 3)private char
the character code of this glyph -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of PDFGlyph based on a pagePDFGlyph
(char src, String name, GeneralPath shape, Point2D.Float advance) Creates a new instance of PDFGlyph based on a shape -
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 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 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
Creates a new instance of PDFGlyph based on a page
-
-
Method Details