Thomas DeWeese:
>    Sure, except actually I think it needs to be the 'rotated' glyph
> cell.  So for text on a path you need to construct a rect that is
> roughly glyphPosition.x, glyphPosition.y-ascent -> 
>           glyphPosition.x+advance, glyphPosition.y+descent
> 
>    Then that needs to be rotated around the point 
> glyphPosition.x+advance/2
> to match the text path (if any).
>  
> 
> > If so, we could use Font.getStringBounds for AWTGVTFonts (and look up 
> > the appropriate advance value from SVGGVTFonts).
> 
>    I think you should use the values from the GVTGlyphVector to get
> the position and advance of the glyph (you might need to add an interface
> to get the ascent/descent).

Actually I think that using the "logical" bounds of the glyphs will
correspond to the right values (before rotation), after having a look at
the code.

-- 
 Cameron McCormack                      ICQ: 26955922
 cam (at) mcc.id.au                     MSN: cam (at) mcc.id.au
 http://mcc.id.au/                      JBR: heycam (at) jabber.org

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to