linux上的Jasper字体

编程入门 行业动态 更新时间:2024-10-28 09:14:34
本文介绍了linux上的Jasper字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

在Windows上使用verdana进行的.jasper报告在red hat linux下运行tomcat的客户端上无效。

My .jasper report made using verdana on windows does not work on the client running tomcat under red hat linux.

有没有办法链接verdana.ttf到.jasper,或者唯一的办法就是在服务器端安装verdana.ttf? 还有其他解决方案吗?

Is there any way to link the verdana.ttf to the .jasper, or the only way around this is to install verdana.ttf on the server side? Is there any other solution?

推荐答案

有一个较低级别的替代方案。您可以在jasper服务器的lib目录中解压缩jar jasperreports-fonts-xxxjar 。

There is a lower level alternative. You can unzip the jar jasperreports-fonts-x.x.x.jar in the lib directory of jasper server's.

检查结构并编辑/添加所需的相应XML文件和TTF文件。保持在那里的连贯性。

Check the structure and edit/add the appropriate XML files and the TTF files you need. Maintain coherence in what's in there.

我每次都遇到包括字体在内的麻烦所以我这样做只需要担心下次升级:)

I was having troubles including fonts every time so I did that and only have to worry on the next upgrade :)

希望它有所帮助,祝你好运。

Hope it helps, good luck.

更多推荐

linux上的Jasper字体

本文发布于:2023-07-27 00:30:22,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1219241.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:字体   linux   Jasper

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!