j.kipper Posted June 4, 2013 Share Posted June 4, 2013 I am new to iReport Designer and currently running version 5.1.0. I have changed the default font name (net.sf.jasperreports.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. Link to comment Share on other sites More sharing options...
Thomas Zimmer Posted June 4, 2013 Share Posted June 4, 2013 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, Thomashttp://www.thomaszimmer.net Link to comment Share on other sites More sharing options...
ilona Posted June 5, 2013 Share Posted June 5, 2013 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.Regards,Ilona Link to comment Share on other sites More sharing options...
j.kipper Posted June 5, 2013 Author Share Posted June 5, 2013 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.Jesse Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now