show newly installed font in jasper report from grails in pdf format

泪湿孤枕 提交于 2019-12-01 11:43:46

You need to put your jar file of font in lib folder of grails application. Also you need to install your font in system where your server is running. After that you should write this syntax in you iReport's xml file below property .

<style name="Sans_Normal" isDefault="true" fontName="yourFontFamilyNameInJarFile" fontSize="10" pdfEncoding="Cp1252" isPdfEmbedded="true"/>

Here is a snippet image of philospher font ,I have used.

Note : Do not add pdfFontName , it will give you error because this is deprecated now.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!