0

I have a question regarding the font used in pdf and docx formats when printing from a JasperReports jrxml. I followed the instructions defined http://community.jaspersoft.com/wiki/custom-font-font-extension to get the JasperReports report to print Arial font in both pdf and docx prints. The pdfs happily accepted this and are printing Arial. But no matter what I try, the docx prints always show up as Sans Serif font.

I also already edited the JasperReports property lines as follows:

net.sf.jasperreports.default.font.name = ArialExtension (Name of my extension, as created by following the links documentation, jar file)

net.sf.jasperreports.default.pdf.font.name = ArialExtension

So, as I understand, JasperReports should always pick Arial as font which it doesn't. I frankly don't know what to do now. We need pdf and docx prints available for our customers and we need them in Arial font.

Can someone point me in another direction or tell me, what I am missing.

4

1 に答える 1

0

問題を修正しました!解決策はまったく明白ではなく、すべての人に当てはまるとは限りません。しかし、私にとっては、使用したいフォントとまったく同じようにフォント拡張子に名前を付けたときに、DOCX および PDF 形式で正しいフォントが使用されていました。したがって、ArialExtension の代わりに、Arial と呼び、jar は Arial.jar と呼びました。次に、DOCX のフォントは正しかったし、PDF でも正しかった。

于 2016-05-13T14:17:54.987 に答える