com.sun.pdfview.font

Class PDFGlyph

public class PDFGlyph extends Object

A single glyph in a stream of PDF text, which knows how to write itself onto a PDF command stream
Constructor Summary
PDFGlyph(char src, String name, GeneralPath shape, Float advance)
Creates a new instance of PDFGlyph based on a shape
PDFGlyph(char src, String name, PDFPage page, Point2D advance)
Creates a new instance of PDFGlyph based on a page
Method Summary
Point2DaddCommands(PDFPage cmds, AffineTransform transform, int mode)
Add commands for this glyph to a page
chargetChar()
Get the character code of this glyph
StringgetName()
Get the name of this glyph
PDFPagegetPage()
Get the PDFPage for a type3 font glyph
GeneralPathgetShape()
Get the shape of this glyph

Constructor Detail

PDFGlyph

public PDFGlyph(char src, String name, GeneralPath shape, Float advance)
Creates a new instance of PDFGlyph based on a shape

PDFGlyph

public PDFGlyph(char src, String name, PDFPage page, Point2D advance)
Creates a new instance of PDFGlyph based on a page

Method Detail

addCommands

public Point2D addCommands(PDFPage cmds, AffineTransform transform, int mode)
Add commands for this glyph to a page

getChar

public char getChar()
Get the character code of this glyph

getName

public String getName()
Get the name of this glyph

getPage

public PDFPage getPage()
Get the PDFPage for a type3 font glyph

getShape

public GeneralPath getShape()
Get the shape of this glyph