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 Gehrer Helmut <he...@visana.ch> on 2002/10/15 20:41:20 UTC
Workaround for border-bottom-style="dotted"
Hello everybody
I'm looking for a solution for underlining text with a dotted line.
Because <fo:inline .... border-bottom-style="dotted"> seems not to be
implemented in FOP 0.20, I've been trying some solutions basing on leader,
but none of them really satisfied me.
When I separate text and the leader into several blocks, there is to much
space between text an the leader:
-----Begin
<fo:block start-indent="1cm" end-indent="1cm" font-family="Helvetica"
font-size="10pt" font-weight="bold" font-style="italic"
space-before="0.5cm">
<xsl:value-of select="formE111/insured/name"/>,
<xsl:for-each select="formE111/insured/previousNames">
<xsl:value-of select="."/>,
</xsl:for-each>
<xsl:value-of select="formE111/insured/givenName"/>
</fo:block>
<fo:block start-indent="1cm" end-indent="1cm" font-family="Helvetica"
font-size="8pt">
<fo:leader leader-alignment="reference-area" leader-length="100%"
leader-pattern="dots" line-height="0.5px"/>
</fo:block>
-----End
The following of 'dirty' usage of list-block does underline the text-fields,
but is very problematic when it's used with various font-sizes (like 9
Points for text and 8 Points for the ruler).
-----Begin
<fo:list-block>
<fo:list-item>
<fo:list-item-label start-indent="1cm" end-indent="1cm"
font-family="Helvetica" font-size="9pt">
<fo:block>
<fo:leader leader-length="100%" leader-pattern="dots"
line-height="0.5px" alignment-adjust="baseline"/>
</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="1cm" end-indent="1cm"
font-family="Helvetica" font-size="9pt" font-weight="bold"
font-style="italic">
<fo:block>
<xsl:value-of select="formE111/insured/name"/>,
<xsl:for-each select="formE111/insured/previousNames">
<xsl:value-of select="."/>,
</xsl:for-each>
<xsl:value-of select="formE111/insured/givenName"/>
</fo:block>
</fo:list-item-body>
</fo:list-item>
</fo:list-block>
-----End
Has anyone any ideas, how to solve this problem?
Regards
Helmut Gehrer