Jump to content

How to make font smaller in a text element with html markup


andrey_nado

Recommended Posts

I have a text element with HTML markup. I know that JasperReport supports very limited subset of HTML tags in such a elements, and "font" tag is supported.


Question: is it possible to make size of the font smaller that base size? For example, what markup should be used to display "Smaller text" in reduced font size? The "-1" size does not work as expected, the "1" size makes font larger.


<staticText> <reportElement x="0" y="0" width="100" height="100"/> <textElement markup="html"/> <text><![CDATA[ Base Text <font size="-1">Smaller Text</font> ]]></text> </staticText>


Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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