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

Bug 319150

Summary: Rotated labels get not displayed correctly
Product: z_Archived Reporter: niggemann.tim
Component: BIRTAssignee: Birt-Chart-inbox <Birt-Chart-inbox>
Status: VERIFIED WORKSFORME QA Contact: Xiaodan Wang <xwang>
Severity: normal    
Priority: P3 CC: bluesoldier, nico290382, niggemann.tim, tobiasbuhr
Version: 2.6.0   
Target Milestone: 3.7.0   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
screenshot of the eclipse chart examples none

Description niggemann.tim CLA 2010-07-07 11:36:56 EDT
Build Identifier: 20100617-1415

I updated my rcp to birt 2.6.0 and got crappy labels (axis title & labels) whenever I try to set the rotation property of a FontDefinition. Numbers get somehow converted to characters and characters to symbols. 

I could reproduce the problem with a fresh installation of helios, empty workspace & the Chart Examples.

I debugged a little bit myself. The string values of the lables seem to be ok the whole time until it comes to the SwtTextRenderer.


Reproducible: Always

Steps to Reproduce:
1. fresh helios modelling 
2. install birt examples via "Help->Install New Software"
3. Open the "Chart Examples" view
4. Select "Primitive Charts->BarStick Stock"
Comment 1 niggemann.tim CLA 2010-07-07 11:38:50 EDT
Created attachment 173668 [details]
screenshot of the eclipse chart examples
Comment 2 Xiaoying Gu CLA 2010-08-17 04:52:40 EDT
can not reproduced on latest BIRT.
Comment 3 Xiaodan Wang CLA 2010-09-08 05:58:57 EDT
Set as Verified.
Comment 4 Xiaodan Wang CLA 2010-09-09 03:54:30 EDT
Set as Verified.
Comment 5 Nicolas Mura CLA 2012-02-22 11:42:16 EST
Hi,

I've got the same issue with Indigo 3.7.1 (Build id: M20110909-1335).
The problem appears in an RCP application on a bar chart rendered by SWT.

Executing the same code on severals computer doesn't reproduce the same error.
From what I've seen this error only happen on Windows (XP and 7) but not on Linux (Ubuntu 10.04). But I've 2 WinXP boxes, on the first it's OK and on the second I've got this issue.
If I remove the rotation, all is OK. It's very problematic for our application.

Has someone find a workaround for this issue ?
Comment 6 Nicolas Mura CLA 2012-02-23 03:42:05 EST
Forcing the font of the labels to Arial for example seems to fix the problem.