How to use gujrati font In jasper Report with Java


I have installed shrti.ttl in iReport Tool and export extenstion as Jar of this to use this In java code.

Its properly display content in iReport, but when I exportReportToPdf in java code ...its properly not displaying content

some two three words are displaying not properly

in Java simple code look like 

JRBeanCollectionDataSource ds=new JRBeanCollectionDataSource(beanData);
jasperPrint = JasperFillManager.fillReport(jasperReport, parameters, ds);



and Ireport xml file simple code like


                <reportElement x="72" y="530" width="571" height="185" uuid="74ab227f-bb7b-4ca2-9b00-acd0dfd74ad6"/>
                    <font fontName="Shruti" size="12" isBold="false" pdfEncoding="Identity-H" isPdfEmbedded="true"/>
                <text><![CDATA[ર્પાછળ વાળી જગ્યામાં

 પ્રધાનમંત્રી   દ્રારા ભરપાઇ કરવામાં આવેલ હોય

 આથી સોપવામાં આવે છે.]]></text>


also ref

lotiyahardik's picture
Joined: Sep 20 2017 - 7:17pm
Last seen: 3 years 11 months ago

1 Answer:


iReport has some problem with external fonts. Try using JasperSoft Studio.

hozawa's picture
Joined: Apr 24 2010 - 4:31pm
Last seen: 2 years 3 months ago