Jump to content
Changes to the Jaspersoft community edition download ×

Jasper reports template - relative font size


Pavel_P
Go to solution Solved by teodord,

Recommended Posts

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

  • 5 years later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

  • Solution

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.fontSize

I hope this helps.

Teodor

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...