I am using ireport 3.7.6 and trying to use different fonts for the different text elements. I made the necessary changes to the font style and is showing up when I do the preview but, the PDF produced by the java application only gets the default font. i checked the XML and it has the fontName="Times New Roman" . Please help me with this.
标签:
jasper-reports
相关问题
- Jasper: error opening input stream from url
- JasperReports Server parameter dependency
- is it possible print element only when its detail
- JasperReports CompileReport
- Print an arraylist content with JasperReports
相关文章
- How to set up jasper reports in spring with subrep
- Modularization of Jasper reports: Pass data source
- How to use jasperreports subreports with grails ja
- Current URL /web/guest/HTML generates exception: n
- SAX2 driver class not found
- Passing array data from PHP to JasperReports (with
- How to force image url in jasper report export to
- SubReport not shown
try to set jasperreports.properties like this:
jasperreports_extension.properties:
and map your pdf-fonts to phisical fonts (jasper.xml):
and desired fonts to resource directory , put jasperreports.jar jasperreports-fonts.jar jasperreports-javaflow.jar to classpath
I tested this on Linux, WinXp, Win7. Rendering and export works fine
In the latest version of jasper report 5,6 different fonts are included through font extensions.
You need a .ttf version of the font you like to display (Times new roman can be found in windows / font).
The easiest way to include a font is through ireport-designer or Jaspersoft Studio
This is a link for these step iReport and this in Jaspersoft Studio