Pavel_P Posted December 4, 2014 Share Posted December 4, 2014 Hi, please, does anybody know if it's possible to define relative font sizes in Jasper reports templates, so if I decide to change size of the default style, all other styles based on this one will change their sizes accordingly? Something that would work like this:<style name="BaseStyle" isDefault="true" fontSize="8"/>[/code]<style name="EmphasizedText" style="BaseStyle" fontSize="BASE_STYLES_FONT_SIZE +1"/> [/code] Thanks a lot, Pavel Link to comment Share on other sites More sharing options...
Solution teodord Posted January 8, 2020 Solution Share Posted January 8, 2020 Hi,No, this is not possible and we don't plan to support it.The fact that styles can be isolated into external style templates offers enough flexibility to change them at runtime. It would be too much trouble to support such expressions in style properties.Also, note that the style properties at element level can have dynamic values using these custom properties:http://jasperreports.sourceforge.net/config.reference.html#net.sf.jasperreports.style.fontSizeI hope this helps.Teodor 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