default font name

I am new to iReport Designer and currently running version 5.1.0.  I have changed the default font name ( under the JasperReports Properties tab to DejaVu Sans Mono, however when I add a new field to any band on a report (new or existing), the field is always set to SanSerif.  I am also using Jaspersoft Studio embedded in Eclipse with the same problem.

j.kipper's picture
Joined: Apr 5 2013 - 10:53am
Last seen: 5 years 4 months ago

3 Answers:

if you don't specify any concrete settings to your text field, its setting shows another font than you set in the jasperreports properties, but if you look at the xml code, you will see, that no font is really attached to the text field (besides you selected one).

I assume, this way setting a default font is deprecated, it doesn't work for me, too. Use a style instead and set the "Default" flag.

Cheers, Thomas

Thomas Zimmer's picture
Joined: Oct 2 2012 - 1:35am
Last seen: 3 weeks 3 days ago

Yes, with JSS you want to use a style and set the Default to the font you want. I don't know if the other method is deprecated in iReport or not, but using a Default style will work.




ilona's picture
Joined: Aug 2 2012 - 11:06am
Last seen: 7 years 10 months ago

Thank you both, especially for the quick answer!  That works perfectly in iReport Designer, even on fields that previously showed up as SanSerif.

FYI: In Jaspersoft Studio (5.1.0), new fields still show up as SanSerif, but if I open the file in iReport Designer they use the default style.


j.kipper's picture
Joined: Apr 5 2013 - 10:53am
Last seen: 5 years 4 months ago