Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以更改文本字段中的字符间距iReport designer?如果没有,是否有任何其他解决方案在文本格式中Java或其他内容中?谢谢
iReport designer
Java
多年后, Jasper 工作室仍然没有对此的支持。所以我做了一个肮脏的解决方法。在字符之间插入制表符,例如
"the quick brown fox jumps over the lazy dog".replace("","\t")
然后您可以使用文本字段的段落属性控制标签大小 -Tab Stop Width
Tab Stop Width
制表位宽度 = 1px
制表位宽度 = 10px
请注意“真正的”标签处理。
你可以使用这样的东西......
($F{TEXT}.split("")).join(" ")
在文本字段或变量中。然后添加一种修剪前导空格的方法。
您必须使用具有更多字符间距的不同字体文件。在 iReport 中没有明确的设置来执行此操作。