You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by jason falcone <jf...@photo.com> on 2008/11/08 02:04:00 UTC

flowText and line-height hacks?

Hi -

We are using flowText in our SVGs, but we're running into a lot of  
instances where the descenders of a font bump into the ascenders on  
the next line. Aside from looking silly, it really hurts readability.

I've read all of the posts on line-increment, the back and forth of  
textArea vs. flowText, the lack of line-height and all of the other  
related materials archived online. The most recent discussions seem  
to be many months old, so I'm hoping that something has happened  
since that might help us. I've also investigated changes to the font  
embedding, but adjustments there seem to affect the whole text block  
and not each line, which makes sense when you consider that the font  
doesn't know how many lines it's on, just glyph attributes.

Do you know of a way that we can introduce some spacing between our  
flowText lines? Whatever the default value, it is too small a number  
and results in crummy looking text.

Thanks!

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


Re: flowText and line-height hacks?

Posted by th...@kodak.com.
Hi Jason,

jason falcone <jf...@photo.com> wrote on 11/07/2008 08:04:00 PM:

> We are using flowText in our SVGs, but we're running into a lot of 
> instances where the descenders of a font bump into the ascenders on 
> the next line. Aside from looking silly, it really hurts readability.
> 
> I've read all of the posts on line-increment, the back and forth of 
> textArea vs. flowText, the lack of line-height and all of the other 
> related materials archived online.

    Batik's flowText implementation supports line-height.  Take a
look at:

    samples/tests/spec12/text/lineHeightFontShorthand.svg

    Is there some reason this doesn't work for you?

> Do you know of a way that we can introduce some spacing between our 
> flowText lines? Whatever the default value, it is too small a number 
> and results in crummy looking text.

    Use the line-height CSS property.