不同操作系统上 iReport 中的高度显示不同

发布于 2024-12-25 09:10:43 字数 171 浏览 1 评论 0原文

如果我在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

风和你 2025-01-01 09:10:43

这是因为不同系统上的字体规格不同。如果您使用字体扩展来指定将使用的精确字体,那么这个问题就会消失。

尝试使用 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文