When I format a text field to be displayed in "Bold"..it appears as bold in the ireport output, but is not displayed in bold when the same is viewed as a PDF.. any suggestions...?
A:
Just had the same problem... I don't know if it will help you, but...
both the text field and the label have a property called "Pdf font name". You have to set this to a bold font (i.e. "Helvetica-Bold" instead of "Helvetica") to render the field bold in a PDF file.
If you edit the JRXML file directly, this setting is contained in the textelement tag after the "size" and "isBold" properties.
Kurt Woloch
2009-11-11 10:35:16
A:
PdfFont name is obsolete. Use font extension instead. Add jasperreports-fonts-xxx.jar into the classpath. Or try http://sites.google.com/site/xmedeko/code/misc/jasperreports-pdf-font-mapping
xmedeko
2010-08-31 09:28:17