不同操作系统上 iReport 中的高度显示不同
如果我在 Linux 上的 iReport 中创建 Jasper 报表,并在 OS X 上的 iReport 中打开相同的报表,则元素内的文本将不会显示,除非增加包围元素的高度。从 OS X 到 Windows 也是如此。
iReport版本和Java版本相同。
有谁知道为什么会发生这种情况?
If I create a Jasper report in iReport on Linux and open the same report in iReport on OS X the text within an element will not be displayed unless I increase the height of the encasing element. The same goes going from OS X to Windows.
iReport versions and Java versions are the same.
Does anyone know why this is happening?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是因为不同系统上的字体规格不同。如果您使用字体扩展来指定将使用的精确字体,那么这个问题就会消失。
尝试使用 iReport 和 JasperReports 附带的 DejaVu 字体来确认您的文本元素。
It's because of different font metrics on different systems. If you use font extensions to specify the precise font that will be used, then this problem should go away.
Try using the DejaVu fonts which ship with iReport and JasperReports for your text element to confirm.