From: Keiron Liddle Date: Thu, 9 Aug 2001 13:29:31 +0000 (+0000) Subject: fixes error that is displayed in new acrobat reader X-Git-Tag: fop-0_20_0~12 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=392caae5b6aa4f86677a25bf38233b5aed8e42e5;p=xmlgraphics-fop.git fixes error that is displayed in new acrobat reader git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194399 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/org/apache/fop/svg/PDFGraphics2D.java b/src/org/apache/fop/svg/PDFGraphics2D.java index 530e25fc5..e60c749aa 100644 --- a/src/org/apache/fop/svg/PDFGraphics2D.java +++ b/src/org/apache/fop/svg/PDFGraphics2D.java @@ -747,7 +747,6 @@ public class PDFGraphics2D extends AbstractGraphics2D { */ public void drawString(String s, float x, float y) { // System.out.println("drawString(String)"); - currentStream.write("BT\n"); Shape imclip = getClip(); writeClip(imclip); @@ -756,6 +755,8 @@ public class PDFGraphics2D extends AbstractGraphics2D { c = getBackground(); applyColor(c, false); + currentStream.write("BT\n"); + Font gFont = getFont(); String name = gFont.getName(); if (name.equals("sanserif")) {