Home
Analytics
Rendering currency symbol in PDF Report
mpk
Hi,
I am using BIRT Designer 2.5.1.
My requirement is to place a Rupee Symbol (Font : Rupee Foradian) in between other text that is to be in a different font.
Eg: Value in "<rupee symbol goes here>"
I added the following to the fontsconfig_pdf.xml file in the plugins/org.eclipse.birt.report.engine.fonts_2.5.1.v20090821 folder.
<composite-font >
<character value="U0060" font-family="Rupee Foradian"/>
</composite-font>
The character value specified above is for " ` " which is the rupee symbol in the font "Rupee Foradian"
However, it is not being picked up by the designer. What is displayed is -
Value in " ` "
Font is installed properly on the m/c. The symbol is displayed properly if the font of the entire label is changed to the rupee font.
Please suggest.
Thanks,
MPK
Find more posts tagged with
Comments
mwilliams
MPK,
Could you just use 2 separate elements? One that says "Value in" and one that gives the symbol right after?
mpk
<blockquote class='ipsBlockquote' data-author="'mwilliams'" data-cid="73828" data-time="1298549591" data-date="24 February 2011 - 05:13 AM"><p>
MPK,<br />
<br />
Could you just use 2 separate elements? One that says "Value in" and one that gives the symbol right after?<br /></p></blockquote>
<br />
<br />
Mwilliams,<br />
<br />
Thanks for your reply. As I have indicated the "Value in ... " is an example. While the way out suggested by you could be applicable here, at some other places where the symbol comes right in the middle of a long sentence, I am not sure if it shall work/look as well. <br />
<br />
That is the reason I was looking for the <character> tag, so I can insert the character anywhere and the font is picked up.
mwilliams
Maybe you could use a text control of type HTML and build your text that way. Then you could specify the font for the symbol and the rest would show as the standard font. Something like:
Value in <Font face="Rupee Foradian">symbol</Font>
mpk
<blockquote class='ipsBlockquote' data-author="'mwilliams'" data-cid="73834" data-time="1298551755" data-date="24 February 2011 - 05:49 AM"><p>
Maybe you could use a text control of type HTML and build your text that way. Then you could specify the font for the symbol and the rest would show as the standard font. Something like:<br />
<br />
Value in <Font face="Rupee Foradian">symbol</Font><br /></p></blockquote>
<br />
Mwilliams, <br />
<br />
That worked perfectly! Thank you.
mwilliams
Not a problem! Let us know whenever you have questions!