Home
Analytics
Devanagari(Hindi) Font not getting rendered for PDF
DEV SAHU
Hi All,
we have a requirement to generate birt report with Devanagari(Hindi) font as a PDF file.
the report is showing Devanagari fonts properly if the chose output to be in DOC or HTML
or any other format other than PDF. Only in the PDF file the Hindi fonts are not getting
rendered properly the come as english words of keystrokes typed.
Any Ideas/Help will be appreciated.
Find more posts tagged with
Comments
kclark
Can you post screenshots of the PDF and a correctly rendered report?
Clement Wong
In what context are you seeing the PDF not showing the fonts?
Do you see the issue occur in the designer? (Run > View Report > As PDF)
Or do you see this issue occur from your Java/Java EE application? If the later, how do you have this deployed and on what operating system. Are the fonts installed there?
DEV SAHU
<blockquote class='ipsBlockquote' data-author="'Clement Wong'" data-cid="115041" data-time="1363205565" data-date="13 March 2013 - 01:12 PM"><p>
In what context are you seeing the PDF not showing the fonts?<br />
<br />
Do you see the issue occur in the designer? (Run > View Report > As PDF)<br />
<br />
Or do you see this issue occur from your Java/Java EE application? If the later, how do you have this deployed and on what operating system. Are the fonts installed there?<br /></p></blockquote>
<br />
<br />
<br />
Hi Clement,<br />
<br />
I am seeing the issue occur in the designer? (Run > View Report > As PDF).
DEV SAHU
<blockquote class='ipsBlockquote' data-author="'kclark'" data-cid="115036" data-time="1363191533" data-date="13 March 2013 - 09:18 AM"><p>
Can you post screenshots of the PDF and a correctly rendered report?<br /></p></blockquote>
<br />
Hi kclark,<br />
<br />
I am attaching the files which rendered the text properly(report_word) 1st file.<br />
and the one which rendered the text incorrectly(report_PDF)2nd file.
Clement Wong
To troubleshoot this issue further...
What version of BIRT are you using?
What is the specific font that you are using? There might be an issue with this particular font. Do you have a link to where it can be found?
Can you attach the sample report?
DEV SAHU
<blockquote class='ipsBlockquote' data-author="'Clement Wong'" data-cid="115077" data-time="1363289036" data-date="14 March 2013 - 12:23 PM"><p>
To troubleshoot this issue further...<br />
<br />
What version of BIRT are you using?<br />
<br />
What is the specific font that you are using? There might be an issue with this particular font. Do you have a link to where it can be found?<br />
<br />
Can you attach the sample report?<br /></p></blockquote>
<br />
<br />
Hi,<br />
<br />
I am using Birt 4.2 version. with font Shusha.ttf which can be downloaded from <a class='bbc_url' href='
http://www.abhivyakti-hindi.org/abhi/hindi_shusha_fonts_dl_help.htm'>http://www.abhivyakti-hindi.org/abhi/hindi_shusha_fonts_dl_help.htm</a>
; this link.<br />
<br />
one thing which we found is that everything is working fine on 64 bit machine version.<br />
but the same is not working on 32 bit machine version. we are working on 32 machine version.
kclark
I was able to get this font to render in PDF with BIRT 4.2.2 by modifying C:\path\to\eclipse\eclipse 4.2.1\plugins\org.eclipse.birt.report.engine.fonts_4.2.2.v201210101433\fontsConfig.xml after I downloaded the font from the link your provided and installed it by right clicking > install.
I added
<mapping name="shusha" font-family="shusha" />
To <font-aliases> saved and restarted. Then I could find the font from the general tab under property editors.
DEV SAHU
<blockquote class='ipsBlockquote' data-author="'kclark'" data-cid="115097" data-time="1363359186" data-date="15 March 2013 - 07:53 AM"><p>
I was able to get this font to render in PDF with BIRT 4.2.2 by modifying C:\path\to\eclipse\eclipse 4.2.1\plugins\org.eclipse.birt.report.engine.fonts_4.2.2.v201210101433\fontsConfig.xml after I downloaded the font from the link your provided and installed it by right clicking > install.<br />
<br />
I added<br />
<br />
<mapping name="shusha" font-family="shusha" /><br />
<br />
To <font-aliases> saved and restarted. Then I could find the font from the general tab under property editors.<br />
<br />