show newly installed font in jasper report from grails in pdf format -
i using ireport 4.5.0 , grails 2.1.1
i wanted use 'canterbury' font of texts in report in pdf format, assigned font desired texts using ireport designer. went tools->option menu of ireport designer , installed font. , made jar extension clicking 'export extension' of font.
i copied created extension file , pasted application's classpath no success.
the problem is, when run report application pdf report showing normal font instead of 'canterbury' in of texts.
i followed link http://javaskeleton.blogspot.sg/2010/12/embedding-fonts-into-pdf-generated-by.html no success.
what did miss out? appreciated
you need put jar file of font in lib folder of grails application. need install font in system server running. after should write syntax in ireport's xml file below property .
<style name="sans_normal" isdefault="true" fontname="yourfontfamilynameinjarfile" fontsize="10" pdfencoding="cp1252" ispdfembedded="true"/>
here snippet image of philospher font ,i have used.
note : not add pdffontname , give error because deprecated now.
Comments
Post a Comment