You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by "Berg, Philip C" <pc...@indiana.edu> on 2003/02/25 00:45:16 UTC
Force maximum table-cell height?
Hi,
This problem seems to have already been answered, but I wanted to make sure. I'm using fop-0.20.4. I found this in the archive:
http://marc.theaimsgroup.com/?l=fop-user&m=102555220521732&w=2
It's slightly different then what I need: I have xml data that populates a table-cell but I always want that table cell to be a certain size (fixed). This happens to be big enough to capture 2 lines of each ~11 characters of stuff each (I say roughly 11 characters since it's variable font). With the height attribute I seem to be able to enforce a minimum height, but not a maximum height. Is that normal or a FOP issue? Based on the post above I got the impression that it also should cap a maximum height, but maybe I misunderstand.
If it is a bug, does that related to this:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2964
... the reason I ask is because I can't seem to look at the attachment. When I click on the attachment Mozilla tries to download showattachment.cgi (is that a bug? :) Seems like the web server is missing CGI extensions, huh?).
Finally if FOP does indeed not support any type of maximum height, somebody have an idea/pointer of how I can achieve what I want? In particular considering that I deal with variable fonts. I probably should take that question to an xsl:fo mailing list, sorry. But I suspect they'll just tell me to use height or max-height... so maybe somebody has a hint here. :)
thanks a lot,
Philip
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
RE: Force maximum table-cell height?
Posted by Roland Neilands <rn...@pulsemining.com.au>.
Philip,
> This problem seems to have already been answered, but I
> wanted to make sure. I'm using fop-0.20.4. I found this in
> the archive:
> http://marc.theaimsgroup.com/?l=fop-user&m=102555220521732&w=2
> It's slightly different then what I need: I have xml data
> that populates a table-cell but I always want that table cell
> to be a certain size (fixed). This happens to be big enough
> to capture 2 lines of each ~11 characters of stuff each (I
> say roughly 11 characters since it's variable font). With the
> height attribute I seem to be able to enforce a minimum
> height, but not a maximum height. Is that normal or a FOP
> issue? Based on the post above I got the impression that it
> also should cap a maximum height, but maybe I misunderstand.
Sounded exactly like what you described, but as it said, it's not
implemented yet.
> Finally if FOP does indeed not support any type of maximum
> height, somebody have an idea/pointer of how I can achieve
> what I want? In particular considering that I deal with
> variable fonts.
A Q&D for you (worked as described on 0.20.5.rc2). If this is the only thing
in the table, just use the block-container instead. Width should match
column width & both heights are required. Extra lines are truncated:
<fo:table-cell height="24pt" >
<fo:block-container height="24pt" width="1.5cm">
<fo:block>
<xsl:value-of select="LineDescription"/></fo:block>
</fo:block-container>
</fo:table-cell>
Cheers,
Roland