On Friday 13 October 2006 22:26, Abel Braaksma wrote: > Jeremias Maerki wrote: > > You got an answer on your question from Manuel Mall: > > http://www.nabble.com/fo%3Ainline-with-line-height%2C-height%2C-bor > >der-or-other-block-like-properties-tf2369401.html > > Thanks Jeremias. This list apparently also works when you are not (or > not correctly) subscribed. > > Manuel, sorry for this belated reply, but I thought (really) that > this FOP User list was dead(ish) until I saw on the internet and XSLT > list referrers to recent posts. I retried. Here are my answers to > your questions. > > Manuel Mall-2 wrote: > > On Monday 02 October 2006 20:47, Abel Braaksma wrote: > > > > No they are not ignored, although it may appear that way. This is > > one of the peculiarities of the XSL-FO spec. For block areas > > border/padding are inside the allocation rectangle for inline areas > > they are outside (see section 4.2.3). Therefore defining > > border/padding top/bottom on an inline area will not make the line > > any higher. > > > >> Can someone help me here? What I am trying to do is make the > >> line-height higher when halfway up a line, not knowing up-front > >> what the maximum height will be for that line (I cannot know what > >> fits on a line and what not). In HTML (as a bad comparison), this > >> is done automatically with inline elements (<span>, <em> etc). > > > > Not sure I fully understand what you trying to achieve. FOP will > > use the maximum height of any inlines as the height of the line. > > Well, I really hoped so, But this is not what happens. If I have in > one paragraph different font sizes, the bigger font sizes will > overlap over the previous line. If I set the line-height to a given > height, it is applied to all lines of the paragraph, whereas I want > the line to be of the minimum height required *per line*, inside that > paragraph. > > Consider the following HTML snippet: > <html> > <body> > <div style="width:100px;"> > <font size="2">This piece is in a small font > size but <font size="5">this is BIG</font> > and this is <font size="7">real BIG</font> > and back to normal again. > </div> > </body> > > Paste it in a text file you see what I mean. The first lines have a > small line-height (automatically), the next lines are higher when > needed, to prevent overlap, the last lines have smaller line-height, > because no bit text anymore. All inside one paragraph. If I do the > same in XSL-FO, the BIG letters will overlap with the previous lines > and look ugly. If I increase the line height, the line heigh > increases for the whole paragraph. > > What I want is to increase the line height only where it is needed: > on the inline element. But this I tried, and does not seem possible > (though what I got from the specs and what you say above, it should > be possible (?) ) >
Sorry, but your example does not make sense to me. You provide HTML not XSL:FO. Can you provide the exact fo file you feed into fop so we can better understand your issue? > > So, it should > > do what you want without anything special. If I have misunderstood > > you could you please rephrase what you trying to do. > > Yes I can, see above, hope it clears things up a bit. > > > BTW, which version of FOP are you using? > > version 0.92a (latest, I believe). > Manuel --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
