2017-06-30 7 views
0

ジャスパーレポート(1.3)をitextライブラリ(1.3.1)と共に使用してpdfレポートを作成します。次のようにフォントが定義されています。私たちは、明示的=「true」をisBoldを設定Jasper Reportsはpdfファイルのテキストを太字にしていません

<reportFont name="font-normal" isDefault="true" fontName="Code2000" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="CODE2000.TTF" pdfEncoding="Identity-H" isPdfEmbedded="true"/> 

、しかし報告書には何も大胆ではありません。フォントCODE2000.TTFは、太字のMS Wordで使用できます。また、内部の要素にisBold = "true"を設定してみました。

<textField> 
    <reportElement positionType="Float" x="0" y="120" width="694" height="14"/> 
    <textElement> 
    <font size="9" pdfFontName="CODE2000.ttf" pdfEncoding="Identity-H" isPdfEmbedded="true" isBold="true"/> 
    </textElement> 
    <textFieldExpression class="java.lang.String"> 
    "TITLE:"+str($P{title}) 
    </textFieldExpression> 
</textField> 

何か助けていただければ幸いです。

+1

はあなたのフォントがあまりにも、大胆なTTFを持っていますか?はいの場合は、フォント定義に追加する必要があります。 –

+0

Code200の太字バージョンが見つかりません – peshi

+0

https://graphicdesign.stackexchange.com/questions/75965/distinguishing-real-and-faux-bold-and栄養 –

答えて

関連する問題