linux上的Jasper字体 [英] Jasper fonts on linux

查看:138
本文介绍了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字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆