Detecting Text Overflow in irregular shapes

2003-11-17 Thread Kevin Maione
I am considering using Batik / SVG to build a web application that merges text and images and displays the results as a JPEG. The application allows the users to specify font info including point size. One of the requirements is to give an error message if content goes outside the boundaries of

cvs commit: xml-batik/xdocs index.xml

2003-11-17 Thread cjolif
cjolif 2003/11/17 08:00:28 Modified:xdocsindex.xml Log: add ILOG Discovery to the product list using Batik Revision ChangesPath 1.50 +3 -2 xml-batik/xdocs/index.xml Index: index.xml ===

Re: Detecting Text Overflow in irregular shapes

2003-11-17 Thread Thomas DeWeese
Hi Kevin, Well Batik will not 'do this for you' however Java2D with Batik will do this fairly easily. In particular using Batik you can get the BBox of the text (org.w3.dom.svg.SVGText.getBBox()) and you can get the 'outline' of a shape node (batik.gvt.GraphicsNode.getOutline()). The using the