Re: [Fwd: Re: Detecting Text Overflow in irregular shapes]

2003-12-04 Thread Thomas DeWeese
Kevin Maione wrote: I am trying to implement the suggestion Thomas made in the previous note but was hoping for some guidance... SVGRect bbox = textElement.getBBox(); //I've got a non-null bounding box here so I'm hoping I'm ok... System.out.println( bbox +

[Fwd: Re: Detecting Text Overflow in irregular shapes]

2003-12-04 Thread Kevin Maione
circle so I can apply             //Thomas's suggestion...                                                 System.out.println( "Completed successfully...");         } catch( Throwable t ) {             System.out.println( "Throwable:"+t);         }            

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