On Thu, 2006-06-15 at 11:38 -0400, David Kavanagh wrote:
> Peter,
> I've used AttributedString to represent a sequence of text with various
> attributes at different segments. Then, you can use the
> LineBreakMeasurer(and passing the AttributedCharacterIterator, and
> FontRenderContext). I found that the LBM didn't work well for blank
> lines (and paragraph breaks), so I ended up handling those cases specially.
> Once I had the lines broken up, I could iterate through and render them,
> creating a glyph vector for each as I go.
>
> David

David,

To be a bit more specific regarding your solution, how did it work with
font changes (e.g. bold) within words? I don't yet know how the multiple
GlyphVectors will behave in such circumstances.

Peter

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to