DynamicReports ,JasperReports linux 字体方框框

阅读更多
采用的 DynamicReports   做的报表到导出


出现的问题
linux  下 导出excel  出现问题 字段显示 方框框
DynamicReports ,JasperReports linux 字体方框框_第1张图片

window 下 导出excel  画的饼图 ok  没有乱码

DynamicReports ,JasperReports linux 字体方框框_第2张图片

问题的原因: linux 缺少字体
修改代码
DynamicReports ,JasperReports linux 字体方框框_第3张图片

DynamicReports ,JasperReports linux 字体方框框_第4张图片

linux 系统添加 字体
采用 管理员进入linux 系统
fc-list  查看目前系统中字体

DynamicReports ,JasperReports linux 字体方框框_第5张图片

使用fontconfig 来安装字体


yum -y install fontconfig
cd /usr/share/fonts/
mkdir chinese
rz  simhei.tth  字体
chmod -R 755 ./chinese
ttmkfdir -e /usr/share/X11/fonts/encodings/encodings.dir
vi /etc/fonts/fonts.conf
fc-cache
fc-list


DynamicReports ,JasperReports linux 字体方框框_第6张图片

DynamicReports ,JasperReports linux 字体方框框_第7张图片

DynamicReports ,JasperReports linux 字体方框框_第8张图片



DynamicReports ,JasperReports linux 字体方框框_第9张图片

DynamicReports ,JasperReports linux 字体方框框_第10张图片

DynamicReports ,JasperReports linux 字体方框框_第11张图片



http://www.dynamicreports.org/documentation/column#textColumn

http://www.linuxidc.com/Linux/2016-09/135548.htm









  • DynamicReports ,JasperReports linux 字体方框框_第12张图片
  • 大小: 49.8 KB
  • DynamicReports ,JasperReports linux 字体方框框_第13张图片
  • 大小: 56.7 KB
  • DynamicReports ,JasperReports linux 字体方框框_第14张图片
  • 大小: 15 KB
  • DynamicReports ,JasperReports linux 字体方框框_第15张图片
  • 大小: 45.9 KB
  • DynamicReports ,JasperReports linux 字体方框框_第16张图片
  • 大小: 8 KB
  • DynamicReports ,JasperReports linux 字体方框框_第17张图片
  • 大小: 7.2 KB
  • DynamicReports ,JasperReports linux 字体方框框_第18张图片
  • 大小: 12.7 KB
  • DynamicReports ,JasperReports linux 字体方框框_第19张图片
  • 大小: 11.6 KB
  • DynamicReports ,JasperReports linux 字体方框框_第20张图片
  • 大小: 5.2 KB
  • DynamicReports ,JasperReports linux 字体方框框_第21张图片
  • 大小: 9.2 KB
  • DynamicReports ,JasperReports linux 字体方框框_第22张图片
  • 大小: 5.3 KB
  • DynamicReports ,JasperReports linux 字体方框框_第23张图片
  • 大小: 7.4 KB
  • 查看图片附件

你可能感兴趣的:(DynamicReports ,JasperReports linux 字体方框框)