/** Add commands for this glyph to a page */
public Point2D addCommands(PDFPage cmds, AffineTransform transform, int mode) {
if (this.shape != null) {
GeneralPath outline= (GeneralPath) this.shape.createTransformedShape(transform);
cmds.addCommand(new PDFShapeCmd(outline, mode));
} else if (this.page != null) {
cmds.addCommands(this.page, transform);
}
return this.advance;