286287288289290291292293294295296
ctx = null; builder = null; try { gen.commentln("%FOPBeginSVG"); gen.saveGraphicsState(); /* * Clip to the svg area. * Note: To have the svg overlay (under) a text area then use * an fo:block-container */
121122123124125126127128129130131
//Draw using Java2D when no native fonts are available textRun.getLayout().draw(g2d); return; } gen.saveGraphicsState(); gen.concatMatrix(g2d.getTransform()); Shape imclip = g2d.getClip(); clip(ps, imclip); gen.writeln("BT"); //beginTextObject()
119120121122123124125126127128129
//Color and Font state g2d.establishColor(g2d.getColor()); establishCurrentFont(); PSGenerator gen = getPSGenerator(); gen.saveGraphicsState(); //Clip Shape imclip = g2d.getClip(); g2d.writeClip(imclip);
303304305306307308309310311312313
* @throws IOException if an I/O error occurs */ protected void beginTextObject() throws IOException { if (!inTextMode) { PSGenerator generator = getGenerator(); generator.saveGraphicsState(); generator.writeln("BT"); inTextMode = true; } }