Home
Designing Analytics Reports
Need help to add a new font in reportDesign
system_migrated
Hello All,
I'm using Birt report design to create an invoice, and I need to add the font OCRb to display the number of the invoice. I did the following procedures :
1. I've added the font OCRB in C:WindowsFonts
2. I added a mapping for OCR in <font-aliases> in the file fontsConfig.xml which is in the folder org.eclipse.birt.report.engine.fonts_2.2.2.r22x_v20071116
<font-aliases>
<mapping name="serif" font-family="Times-Roman"/>
<mapping name="sans-serif" font-family="Helvetica"/>
<mapping name="monospace" font-family="Courier"/>
<mapping name="cursive" font-family="Times-Roman"/>
<mapping name="OCR" font-family="OCRB">
</font-aliases>
3. I've checked the font paths in the file fontsConfig.xml, there is the path of the font OCRB:
<font-paths>
<path path="C:/windows/fonts"/>
....................
</font-paths>
4. In the report design, I set the font of the number : OCRB
But when I generate the report as PDF, it can't display the number with the font OCRB, the number is displayed in other font(probably with a default font ).
Someone has an idea how to add a new font in BIRT?
In fact I'm not sure that it's the file fontsConfig.xml which is used to generate the PDF. Because if I delete it, report design works well.
and if I delete all the other fontsConfig files, report design stil works well.
Pls help me, I should fix the pb asap, thanks in advance!!!
Cecile
Find more posts tagged with
Comments
There are no comments yet