2016-11-23 8 views
0

中国語を設定するにはラベルを使用し、文字を太字にするには太字を使用しますが、pdfで印刷すると効果はありません。iReport 4.7文字を太字に設定したが、pdfには影響なし

<staticText> 
      <reportElement uuid="20445ac6-99f7-44aa-9e7f-f9b658decf3b" x="0" y="0" width="554" height="23"/> 
      <textElement textAlignment="Center" verticalAlignment="Middle"> 
       <font fontName="SansSerif" size="12" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="STSong-Light" pdfEncoding="UniGB-UCS2-H" isPdfEmbedded="true"/> 
      </textElement> 
      <text><![CDATA[学生预防性体检结果]]></text> 
     </staticText> 
+0

[Font Extensions](http://jasperreports.sourceforge.net/sample.reference/fonts/index.html#fontextensions)を使ってみましたか? –

+2

[Jasper Reports PDFはキリル文字の値をエクスポートしません](http://stackoverflow.com/questions/34041619/jasper-reports-pdf-doesnt-export-cyrillic-values)&[ヒンディーを正しくレンダリングするにはpdfにエクスポートする場合?](http://stackoverflow.com/q/34287186/876298) –

+0

[font-extensions](http://stackoverflow.com/documentation/jasper-reports/5773/font)のSOドキュメントを確認してください。 - 拡張子) –

答えて

0

私はプロジェクトのlibsの下wryh.jar入れて、私はPDF .MY問題でそれをprintview時にフォントが太字見ることができ、私の中国語フォント、私のテキストフィールドのフォントとしてsimsunフォントとして微軟雅黒のフォントを選択あなたに感謝します。皆さんありがとうございます