在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字体
发布评论