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.

enter image description here

note : not add pdffontname , give error because deprecated now.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -

php - Accessing static methods using newly created $obj or using class Name -