If you're working in Java, there are a couple of text characteristic classes
that can help you determine the true length of a line of characters,
provided that the font exists on the system running the JVM.


-----Original Message-----
From: Chris Lilley
To: Batik Users
Sent: 10/7/01 4:02 PM
Subject: Re: Text size



Scott Moore wrote:
> From: "Chris Lilley" <[EMAIL PROTECTED]>
> > If you use an SVG font you can iterate through the string and tell
the
> > exact width of it by adding all the glyph widths.
> 
> Oh yeah?  Is this API in Batik?  How do I use it?

I assumed that this was about generating content to be displayed in
Batik, not restricted to using Batik as the content generation tool as
well.

You can get at the information using the XML DOM, its just attribute
values.

-- 
Chris

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

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

Reply via email to