You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xmlgraphics.apache.org by je...@apache.org on 2008/11/04 09:32:03 UTC
svn commit: r711208 -
/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/java2d/ps/PSGraphics2D.java
Author: jeremias
Date: Tue Nov 4 00:32:02 2008
New Revision: 711208
URL: http://svn.apache.org/viewvc?rev=711208&view=rev
Log:
Avoid text painting problems when Graphics2D.create() is used. Note: this is only half the story. This will take additional work on the TextHandler interface (plus implementations) to get right completely!
Modified:
xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/java2d/ps/PSGraphics2D.java
Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/java2d/ps/PSGraphics2D.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/java2d/ps/PSGraphics2D.java?rev=711208&r1=711207&r2=711208&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/java2d/ps/PSGraphics2D.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/java2d/ps/PSGraphics2D.java Tue Nov 4 00:32:02 2008
@@ -115,7 +115,10 @@
this.rootG2D = (g.rootG2D != null ? g.rootG2D : g);
setPSGenerator(g.gen);
this.clippingDisabled = g.clippingDisabled;
- this.fallbackTextHandler = g.fallbackTextHandler;
+ //this.fallbackTextHandler is not copied
+ //TODO The customTextHandler should probably not be passed over just like that
+ //fallbackTextHandler, for example, has to be recreated to point to the sub-Graphics2D
+ //to get the text positioning right. This might require changes in the TextHandler interface
this.customTextHandler = g.customTextHandler;
this.currentColour = g.currentColour;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: commits-help@xmlgraphics.apache.org