サイズの異なるテキスト(Helvetica 6pt、右カラムTimes 8pt)をテーブルに書き込んでいますが、テキストのベースラインは揃っていません - 左のテキストは目に見えるほど高い右の列のものよりも。それはどうやっていいの? FOP 2.1を使用してください。異なるフォントサイズの表コンテンツのアラインメント
一方向にはline-height=...
を追加することになりますが、現在の垂直間隔と同じになるように行高さを設定する必要がありますか?
もっと一般的な方法はありませんか?
<fo:block-container position="absolute" top="27mm" left="125mm" width="75mm" font-family="Times" font-size="8pt">
<fo:table table-layout="fixed">
<fo:table-column column-width="2.7cm"/>
<fo:table-column column-width="4cm"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell>
<fo:block margin-top="12pt" font-size="6pt" font-family="Helvetica">Contact:</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block margin-top="12pt">Normally me</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell>
<fo:block font-size="6pt"> </fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block>Manager</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell>
<fo:block font-size="6pt" font-family="Helvetica">email:</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block>[email protected]</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:block-container>
XSL 1.1では 'line-size'は定義されていません。 –
あなたは正しいと確信しています!私の悪いエラー、私は 'line-height'を意味しました、ありがとう。 –