Skip to main content
Known Participant
April 20, 2010
Question

Different line heights with in same paragraph

  • April 20, 2010
  • 1 reply
  • 585 views

Hello

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

Thanks

This topic has been closed for replies.

1 reply

Adobe Employee
April 20, 2010

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

Known Participant
April 21, 2010

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.

Known Participant
April 22, 2010

Hi

Is any solution available for this problem.