Hi, I have been working on rounded border support in FOP recently and I have come to a sticking point which I hope you can help with.
First a little info regarding my work: I have used fox extension attributes to prescribe the elliptic properties of the corners as suggested in http://wiki.apache.org/xmlgraphics-fop/RoundedBorders I have not presented my code to the FOP community yet for a few reasons: The code is currently rather experimental in parts and breaks some of the design considerations currently in the painters. AFP support requires much more work: I have not implemented a solution using GOCA yet, instead opting for IOCA rendering of the whole block. This decision was driven by in house requirements and not as elegant perhaps as the GOCA solution. I am not sure whether there would be enough interest in this feature to warrent starting a process a la the Complex Scripts feature? Should I continue to work in isolation and submit a patch for community review at a time I feel it is ready? My agenda here is to hopefully receive some help: I have come to a sticking point with the IF format. Currently block-like areas with a border are represented in the form <g> <rect .../> </g> <border-rect x="" y="" width="" height="" before="(solid,#ff0000,10000)" ... /> The rect element is used for the background colour of the block, and the border-rect element is used to draw the border. Currently I have overloaded the before|after|start|end attribute to include the ellipse radii (their meaning is not important in this query). When I produce a PDF from IF I am able to generate curved borders however I have not changed rect to incorporate rounded corners as I am not sure whether this would be deemed appropriate. What should I do? Should rect be overloaded? Should the <g><rect/></g><border-rect/> be replaced by something else? I am aware that structural changes to the IF should not be taken lightly but I also worry that overloading rect is a hacky solution. Any thoughts welcome Kind Regards, Pete
