JasperReports fonts
I need to ex开发者_StackOverflow社区port the Japanese report in PDF. Report font must be Tahoma. So I set the report font as "Tahoma". Initially it thrown like "tahoma" not available to JVM, I have placed the tahoma.ttf as jar in classpath. After that, When I execute, For Tahoma, it doesn't support, pdf encode= "UniJIS-UCS2-HW-H" option.
Error is like: Usupported encoding: "UniJIS-UCS2-HW-H"
PDF font used is "HeiseiKakuGo-W5"
Can anyone suggest a solution please?
Do not use pdfEncoding or isPdfEmbedded. These attributes were deprecated years ago. Use Font Extensions. They were introduced to solve exactly this problem. They'll let you generate the PDF as you are attempting to do. If you Google "jasperreports font extensions" you should find the information that you need.
精彩评论