Jump to content
We've recently updated our Privacy Statement, available here ×

How to auto resize font size to fit text in textfield?


Go to solution Solved by I am Leo,

Recommended Posts

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

  • Solution
<textField textAdjust="ScaleFont">    <reportElement x="0" y="0" width="1520" height="15" uuid="6cb61704-2f0a-4b05-b714-f0219175f001">        <property name="com.jaspersoft.studio.element.name" value="content"/>    </reportElement>    <box topPadding="35" leftPadding="35" bottomPadding="35" rightPadding="35"/>    <textFieldExpression><![CDATA[$F{point4}]]></textFieldExpression></textField>[/code]

Just use textAdjust="ScaleFont" in your text field. 

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