Hi Matthew,
"Matthew Darlison" <[EMAIL PROTECTED]> wrote on 08/29/2007 07:02:44 AM:
> Hi Thomas,
>
> > "Matthew Darlison" <[EMAIL PROTECTED]> wrote on 08/29/2007 05:56:36
AM:
> >
> > > TextLayout stextLayout = slbm.nextLayout(swrappingWidth);
> > > stextLayout.draw(g2, sx, sy);
> On 29 Aug 2007 at 6:21, [EMAIL PROTECTED] wrote:
> > I'm guessing that the LineBreakMeasurer is setting a
> > bunch of attributes on the attribute string that it passes
> > to the Graphics2D to draw.
> I've just tried with all of the commented out, and I'm seeing no
> change... could the font itself make a difference...?
Then I suspect that the TextLayout class draws the string
using a GlyphVector which is impossible to map back to chars.
You can test this by adding print statements in the Graphics2D.
Unfortunately I think this means that you will need to
change the way you wrap text if you want to preserve the
text as text...
Do any of the other output formats manage to preserve
the text as text?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]