On Tue, Dec 31, 2019 at 5:49 AM Tilman Hausherr <thaush...@t-online.de> wrote:
> Can we simplify this question and focus on one single thing? I have now got this running satisfactorily (I believe) by keeping track of "fill" or "stroke" mode by: awtStrokeColor = (Color) getPaint(getGraphicsState().getStrokingColor()); awtFillColor = (Color) getPaint(getGraphicsState().getNonStrokingColor()); > I assumed that these might be individually set to null when not required, but this doesn't work so I explicitly set them to null in fillPath or strokePath as appropriate. This seems to work over a number of examples so I am happy to close this and thank Tilman for help and patience. Simply knowing this was a useful approach was enough to give me confidence to solve this. When it's tidied more I hope to give some examples that may be useful for others. -- "I always retain copyright in my papers, and nothing in any contract I sign with any publisher will override that fact. You should do the same". Peter Murray-Rust Reader Emeritus in Molecular Informatics Unilever Centre, Dept. Of Chemistry University of Cambridge CB2 1EW, UK +44-1223-763069