Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 356223

Summary: Bug in the Word emitter when using True Type Fonts
Product: z_Archived Reporter: M. Kassens <m.kassens>
Component: BIRTAssignee: Birt-ReportEngine-inbox <Birt-ReportEngine-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: bluesoldier, hao.zhou, libin.eferns, m.kassens
Version: 3.7.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description M. Kassens CLA 2011-08-30 11:57:13 EDT
I got some strange behavior from birt 3.7. Perhaps different versions have some problem but didn't tested.
When I create a Report in doc-Format with a font like Bitstream Vera Sans or own Font the document didn't use the correct font. Word shows the correct font in quotation marks but not using it. If I use Fonts like Arial or Papyrus, there is no problem. Also birt use the correct font, when i create the same report in pdf.
at least i know where's the different between the fonts.
Fonts in the TrueType-flavoured OpenType-format works, but real True Type Fonts get the quotation marks and aren't used. 

Copied out of the .doc:
wrong part:   <w:rFonts w:ascii="&#34;Bitstream Vera Sans&#34;" w:fareast="&#34;Bitstream Vera Sans&#34;" w:h-ansi="&#34;Bitstream Vera Sans&#34;" w:cs="&#34;Bitstream Vera Sans&#34;"/>
correct part: <w:rFonts w:ascii="Papyrus" w:fareast="Papyrus" w:h-ansi="Papyrus" w:cs="Papyrus"/>

compare :http://www.eclipse.org/forums/index.php/t/237512/
Comment 1 Libin CLA 2011-09-07 09:39:54 EDT
I have got the same error too.

The Version is : 3.7
OS: Have tried on Windows XP and Windows 7

When generating a report in doc format certain fonts are not applied. They are shown within quotes mark in the font type drop down box in microsoft word.

However the same report that is generated in PDF works well. The font that I have tested is Aller Light and Aller Bold.
Comment 2 Xiaoying Gu CLA 2011-10-28 03:05:57 EDT
I tried the font Bitstream Vera Sans and didn't see the wrong part you mentioned.
Could you provide more detail information or attach a sample report I can test with?
Comment 3 Hao Zhou CLA 2011-11-11 02:57:48 EST
I can reproduce this bug in 3.7.0, but can't reproduce in 3.7.1.
I think this bug has been fixed.
Please download latest version and try again.
Any problem,please contact me.
Comment 4 M. Kassens CLA 2011-11-14 03:59:39 EST
(In reply to comment #3)
> I can reproduce this bug in 3.7.0, but can't reproduce in 3.7.1.
> I think this bug has been fixed.
> Please download latest version and try again.
> Any problem,please contact me.

(In reply to comment #3)
> I can reproduce this bug in 3.7.0, but can't reproduce in 3.7.1.
> I think this bug has been fixed.
> Please download latest version and try again.
> Any problem,please contact me.



Yes, it seems to be fixed in Version 3.7.1
Thank You
Comment 5 Xiaoying Gu CLA 2011-11-14 04:06:41 EST
Fixed in 3.7.1