• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 349
  • Last Modified:

xsl:fo (how to fix the fo:block height irrespective of the font size for the content in that block?)

how to fix the fo:block height irrespective of the font size for the content in that block?

i am using xsl-fo formatter from antenna house.

for example,

<fo:block height="2.3cm"  font-size="7pt">
hello
</fo:block>
<fo:block height="1.3cm"  font-size="10pt">
world
</fo:block>


displays as

hello
world

instead of

hello


world.

i am unable to fix the block height.



thats for your reply.


regards
0
vihar123
Asked:
vihar123
1 Solution
 
vihar123Author Commented:
the problem is
its not showing any empty space after the first fo:block as the font size is very small...

i am trying to fix the block height to a specific height.
0
 
dualsoulCommented:
hm...can't check it right now, but try <fo:block space-before.optimum="1pt" space-after.optimum="1pt">
0
 
petiexCommented:
The fo:block object does not have a "height" property. It does, however have a "line-height" property.
So, change your code to:

<fo:block line-height="2.3cm"  font-size="7pt">
hello
</fo:block>
<fo:block line-height="1.3cm"  font-size="10pt">
world
</fo:block>
0

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now