Jump to content
Changes to the Jaspersoft community edition download ×

how to have two size in the same TextField


msanaa333
Go to solution Solved by gert_1,

Recommended Posts

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

If the designer would allow it, you will run into issues when exporting the content to PDF or Excel which do not allow the same field to have multiple formats.

Better to create two fields and format each on the way you want.  Right Justify the first one and left justify the second one to achieve the same effect.

Link to comment
Share on other sites

  • Solution

I think rick has a point, maybe better to use 2 different textfields, but that can be a pain as well if you want mulptiple different sizes in 1 line. It can be done like this:

  • Go to Text Field properteis -> Tab 'Text Field'
  • Set 'Markup' (beneath 'Font') to 'html' 

Now you can use HTML expressions in your text field to change font size like:

  • "This is normal text  <font size='5'>This is a different size text!</font>"
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...