build identifier: i20100319-1449

===== description =====
corruption in report when previewing in postscript format
==== environment =====
build level: 		i20100319-1449 
component: 		birt
platform: 		redhat5.4
jre: 			jre-1_5_0_22-windows-i586-p.exe (sun java 5)
affected locale(s): 	tchinese, turkish

===== steps to reproduce =====
1. open new project dialog from eclipse file menu, select business intelligence and reporting tools, and click next.
2. type any project name on report project dialog and click finish. open associated perspective dialog is displayed. 
    click yes to display birt perspective.
3. on navigator view, right click the project and select import, select file system, and select the test_report_crosstab.rptdesign. then, click finish.
4. double click the test_report_crosstab.rptdesign on navigator view. the report design is displayed. 
5. double click the data source and set the “select folder” to the path where exportdata.csv has been copied.
    (note: the attachment contains two csv files: exportdata_zh_tw.csv and exportdata_tr_tr.csv. please rename it to exportdata.csv according to the language that is to be tested.)
6. click run in toolbar
7. select view report
8. as postscript

===== expected result =====
the text should be displayed correctly without corruption

===== actual result =====
the text are corrupted.

reproducible: always
created an attachment (id=163209)
screenshot on tchinese on redhat5.4
created an attachment (id=163210)
test_report_crosstab.rptdesign
created an attachment (id=163211)
exportdata_zh_tw.csv
created an attachment (id=163212)
exportdata_tr_tr.csv
a similar defect was reported in previous release (272455), but we still see an issue in this v.3.6 release.  please advise
updated: affected locales are: tchinese, turkish, schinese, korean
hi,

could any one give us an update?

many thanks
the priority of fonts configuration file is as following:
	two major levels of configuration files:
	1. configuration files without format in name are divided into three sub-levels:
		a. default configuration file: fontsconfig.xml
		b. configuration files specified for special platform: fontsconfig_windows_xp.xml or fontsconfig_win32.xml.
		c. configuration files specified for special platform and special locale: fontsconfig_win32_zh.xml/fontsconfig_win32_zh_cn.xml
	2. configuration files with format in name are also divided into 3 sub-levels:
		d. default configuration files for a format: fontsconfig_pdf.xml
		e. configuration files for a format under special platform: fontsconfig_pdf_win32.xml
		f. configuration files for a format under special platform: fontsconfig_pdf_win32_zh.xml
	from level a to level f, the priority of configuration files increase.

so, if you have not modified the font configuration file, for redhat, go to fontsconfig_linux.xml or create a new fontsconfig_postscript_linux.xml, 
in composite-font section, which may look like the following,
	<composite-font name="all-fonts" default="lucida sans typewriter">
		<font font-family="lucida sans typewriter" catalog="western" />
		<font font-family="zysong18030" catalog="chinese" />
		<font font-family="baekmuk batang" catalog="korean" />
		<font font-family="kochi mincho" catalog="japanese" />
	</composite-font>

select a font family which can display chinese characters and exists in your redhat to replace the "zysong18030" for catalog="chinese".

similarly, you can insert a new catalog into composite-font for turkish,   
<font font-family="some_font" catalog="turkish" />. 

if you want to define the font search sequence for different locale, please goto fontsconfig.xml and find <search-sequences> section, create your customized locale and define the sequence. if this search sequence is not defined, the occurrence sequence of catalogs in <composite-font> will be used as the default.

hi, we tried the various steps mentioned in this bug 307329, and in 307494 and 307332, however we still cannot get the characters display correctly.  

i have raised this bug to major as we have 10 tests affected by this type of bug.

please kindly help vnc to our test machine for investigation.

details will be sent in a separate email.

please let us know if you need more information.  many thanks in advance.

- steven.
please note we had tried to use times new roman for the font, but we still see corruption.  please kindly advise.  many thanks.
- steven.
raising to "major" as this is blocking around 10 execution records.
times new roman can not display traditional chinese and turkish characters, you need to find a font which can display chinese/turkish characters and exists in your redhat.
albert and doshiro-san, would you be able to provide some examples for the fonts that can be used to display traditional chinese and turkish characters on redhat?  that would be a great help on getting this to work.
is it possible to save the file and verify it on winodws machine?
if the output is ok on windows machine, this is a font issue so that the test can be continued.

thank you,
doshiro.
created an attachment (id=163944)
fonts.dir file
created an attachment (id=163945)
fonts.scale file
comment 15 is a good suggestion.  steven, would you be able to do that?

while that was being considering as an option, i also attached the 2 font-related files, fonts.dir and fonts.scale, in the /usr/local/fonts/ttf directory on the test system.

perhaps albert or doshiro-san can take a look, and help identify what font(s) can be used for proper display of traditional chinese and turkish characters.

please let us know if more information wouldbe needed.
hi, cheng-yee
    from your attached files, i found there is only one font family times roman with different font faces on your test system. you need to import some new fonts. simsun for chinese characters for example.

the problem has been verified.

note: the attachment fonts.zip contains detail instruction on how to setup fonts
on linux system and configure xml files to solve the issue.
created an attachment (id=164808)
fonts.zip
closing this issue as fixed.

thank you for all your help and advise.

- steven.