iReport部署到Linux系统字体问题
来源:互联网 发布:电警棍在淘宝违法吗 编辑:程序博客网 时间:2024/05/08 05:39
在网上搜到的方法如下:
使用ireport导出pdf,在Windows下,一切好好的,放到Liunx下后,导出pdf报
net.sf.jasperreports.engine.util.JRFontNotFoundException: Font '宋体' is not available to the JVM. See the Javadoc for more details.
解决方法:
1、把需要用到的字体(可以直接拷贝windows系统的C:\WINDOWS\Fonts 下的相关字体)拷贝当前项目的classpath下,一般为classes目录下
2、在classpath里添加 jasperreports.properties 属性文件
文件内容为:
net.sf.jasperreports.awt.ignore.missing.font=true
但是依然没有解决,最后在spring中添加配置
3、<bean id="propertiesReader" class="org.springframework.beans.factory.config.PropertiesFactoryBean">
<property name="locations">
<list>
<value>classpath:jasperreports.properties</value>
</list>
</property>
</bean>
0 1
- ireport部署到linux系统字体问题
- iReport部署到Linux系统字体问题
- ireport打印pdf字体问题
- 转-部署到AIX系统乱码问题
- 部署到AIX系统乱码问题
- .net网站可以部署到linux系统
- 部署项目到linux系统操作方法
- java上传下载文件部署到linux系统下的一些问题
- web部署到Linux乱码问题
- 读取到系统字体
- 系统由windows部署在linux问题
- Jasperreport+iReport报表设计(三)字体问题
- ireport部署到jasperServer上遇到的一些小错误
- [iReport总结1]iReport生成PDF文件中时的中文日文字体问题
- ireport报表部署出现的问题与解决
- ireport报表部署出现的问题与解决
- Linux 添加系统字体
- Linux系统字体下载
- CAN转COM或CAN-完结篇
- ubuntu64位 android 开发环境配置包脚本
- android对象关系映射框架ormlite学习
- apache的80端口被占用
- CyclicBarrier
- iReport部署到Linux系统字体问题
- 安卓设置EditText获得焦点时不显示输入法
- svn switch user
- C++中成员变量 父类 子类构造析构顺序
- 设计模式之(二)——抽象工厂模式
- alias命令使用
- Android drawable文件夹的使用
- UVA - 562 - Dividing coins (01背包)
- 初探验证码识别