Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iReport - How to change character spacing in text field?

Is it possible to change character spacing in text fields in iReport designer? If not, is there any other solution with text formatting in Java or in something else? Thanks

like image 756
Juraj Polak Avatar asked Apr 11 '12 08:04

Juraj Polak


1 Answers

After years, there is still no support for this in the Jasper studio. So I did a dirty workaround. Insert tabs in between characters, e.g.

"the quick brown fox jumps over the lazy dog".replace("","\t")

then you can control the tab size with textfield's paragraph property - Tab Stop Width

Tab Stop Width = 1px Tab Stop Width = 1px

Tab Stop Width = 10px Tab Stop Width 10px

Just beware of "real" tab handling.

like image 108
PeterS Avatar answered Nov 09 '22 21:11

PeterS