Skip to main content
Known Participant
Apr 20, 2010 11:34 AM UTC
Question

Different line heights with in same paragraph

Hello

I want to create different text lines of the same paragraph with different line heights.How it can be?

Thanks

This topic is closed to new replies. Start a new post to keep the conversation going.

3 replies

Adobe Employee
Apr 20, 2010 10:38 PM UTC

You can assign a larger or smaller lineHeight to the text in the paragraph that you want to be in a larger or smaller line. TLF will use the maximum of the lineHeights on a line to determine how much space to leave between the lines.

So, suppose you have three lines in the paragraph:

<p>A<br/>B<br/>C</p>

I've given them breaks to force the lines, but there could just be more text there.

Then you could do something like this:

<p>A<br/><span lineHeight="50">B</span><br/>C</p>

If you want an arbitrary line to be taller (for instance, always the third), that's a little trickier. You'd have to compose it, find the third line, set the line height property on that, and recompose. Is that what you're trying to do?

- robin

Translate
Known Participant
Apr 21, 2010 5:56 AM UTC

Hello Robin

No that is not exactly the thing i am trying.

I insert an inline graphic in a line and set the line height explicitly for it.Now when the text move to the next line (but paragraph do not change),Iine height remains the same as the graphics height,Which is not required.The height should change in the next line.

I think now you have understand the problem exactly and this is the problem for which I want the solution.

Translate
Known Participant
Apr 22, 2010 5:00 AM UTC

Hi

Is any solution available for this problem.

Translate