Bug 420676 - Font gets substituted in PDF
Summary: Font gets substituted in PDF
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 4.3.1   Edit
Hardware: PC Windows 7
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Birt-ReportEngine-inbox@eclipse.org CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-29 16:28 EDT by ivkina CLA
Modified: 2013-11-22 04:30 EST (History)
1 user (show)

See Also:


Attachments
rpt design (3.07 KB, application/octet-stream)
2013-10-29 16:28 EDT, ivkina CLA
no flags Details
pdf with font substituted (27.52 KB, application/pdf)
2013-10-29 16:29 EDT, ivkina CLA
no flags Details
true arial font (PPTX) (35.23 KB, application/vnd.openxmlformats-officedocument.presentationml.presentation)
2013-11-13 10:36 EST, ivkina CLA
no flags Details
arial mt (pdf for the same report) (71.89 KB, application/pdf)
2013-11-13 10:36 EST, ivkina CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description ivkina CLA 2013-10-29 16:28:22 EDT
Created attachment 237045 [details]
rpt design

We generate and preview reports using ReportEngine API (version 431) and noticed that original Arial font used in the report is substituted by ArialMT font in BIRT generated PDF output. ArialMT looks smaller and somewhat different than normal Arial. This is BIRT 431 on Windows 7 box and I am not even observing ArialMT font installed in c:\windows\fonts. Is there any way to get an actual font that was used in report design when generating a PDF document through BIRT? Maybe there is some API calls specific to that? I checked IPDFRenderOption and IRenderOption classes but nothing seems to be useful in this case.

The issue can be easily recreated right in BIRT Designer>Menu:Run>View As PSF. Once PDF file is generated open it in Adobe and go to Menu:File>Properties>Fonts tab and note that Arial MT is used (not Arial). See simple report design file attached.

p.s: we have a real customer issue here with a real production AP Checks report. Customer can't accept Arial MT font on bank check due to multiple space/formatting issues

Thanks,
Aleksey
Comment 1 ivkina CLA 2013-10-29 16:29:03 EDT
Created attachment 237046 [details]
pdf with font substituted
Comment 2 ivkina CLA 2013-11-11 10:54:58 EST
Hello again,
Could anyone from BIRT expert team take a look at this problem? We have a really hot issue with this font substitution raised by one of our customers who are printing payroll checks report developed with Arial but substituted by Arial MT in PDF and when printing. really appreciate your input.

Thanks
Comment 3 Yu Chen CLA 2013-11-12 22:20:28 EST
ArialMT is in c:\windows\fonts\arial.ttf. It is the PS font name for Arial. They should be the same.
I compared the generated PDF with Web browser and MS WORD. ArialMT looks the same with Arial.

Could you attach the customer's old PDF?
Comment 4 ivkina CLA 2013-11-13 10:04:06 EST
No, the fonts are different. Arial MT is smaller and a bit different...They are just different fonts - period. Any way we can force BIRT to PDF API to use actual design time font Arial but not Arial MT? The same thing happens to other fonts, e.g., Courier New gets replaced by Courier New MT in PDF.

If you do a google search on the issue there are a lot of complains regarding this font replacement in PDF. In case of BIRT, it seems to be related with how BIRT API generates PDF in particular. It also seems that there is a way to tell PDF generation API to use actual font and not substitute it by PS (MT) font. 

Thanks

internet links on font substitution issues:
http://www.wpuniverse.com/vb/showthread.php?33162-Why-is-my-Arial-font-changed-to-ArialMT-in-the-PDF

https://groups.google.com/forum/#!topic/adobe.indesign.windows/5RGGSpKILCQ

http://lists.frameusers.com/pipermail/framers/2008-June/012745.html
Comment 5 ivkina CLA 2013-11-13 10:36:10 EST
Created attachment 237434 [details]
true arial font (PPTX)
Comment 6 ivkina CLA 2013-11-13 10:36:40 EST
Created attachment 237435 [details]
arial mt (pdf for the same report)
Comment 7 Yu Chen CLA 2013-11-22 04:30:13 EST
Arial is Arial MT. BIRT uses arial.ttf and embeds the font into PDF file. The name table in arial.ttf shows its Postcript name is "ArialMT" and font family name is "Arial". They are exactly the same when I print them out to compare them.

How did you check the difference?
If you compare them by printing them out, please make sure your print setting does not shrink the content. You can assign a border for the grid in your attached rpt.design to check this.