|
Re: Rotated axis labels in Windows [message #855187 is a reply to message #855041] |
Tue, 24 April 2012 15:37   |
|
Is this the same issue?
https://bugs.eclipse.org/bugs/show_bug.cgi?id=273975
BTW what output format are you using for the chart?
Jason
On 4/24/2012 9:28 AM, Jens öcke wrote:
> Hi there,
>
> I came accross a strange problem. I'm developing an RCP application, which draws a bar chart using the BIRT chartengine. But when I try to rotate the xAxis Labels by 45 degree it displays just garbage under Windows. I've attached two screenshots. Both screenshot use the same data and same birt version.
> I just added
> xAxis.getLabel().getCaption().getFont().setRotation(45);
> to rotate the label.
>
> The same code works fine under linux and macosx. Anyone got any suggestions what I'm doing wrong?
>
> Regards
> Jens
>
>
>
|
|
|
|
|
|
Re: Rotated axis labels in Windows [message #857637 is a reply to message #856607] |
Thu, 26 April 2012 18:27   |
|
Can you try adding the font name like:
xAxis.getLabel().getCaption().getFont().setName("Arial");
Jason
On 4/25/2012 4:43 PM, Jens Köcke wrote:
> Hi,
>
> I've attached a simple App. It opens a simple Shell and displays a chart. Running on MacOS the bottom Labels are shown. Running on Windows (tested as standalone app, not run from inside eclipse) the bottom labels are just garbage.
>
> Jens
>
> Jason Weathersby wrote on Wed, 25 April 2012 12:09
>> Do you have a sample app that I could run that shows the issue?
>>
>> Jason
>>
>> On 4/25/2012 4:49 AM, Jens öcke wrote:
>>> I don't think it is the same issue.
>>>
>>> I'm rendering direkt to a swt canvas.
>>>
>>> Jens
>
>
|
|
|
|
Re: Rotated axis labels in Windows [message #857692 is a reply to message #857688] |
Thu, 26 April 2012 19:29   |
|
No I think this may be a bug with fonts. It would be good if you could
put a bugzilla entry in and put the resolution as well.
Jason
On 4/26/2012 3:24 PM, Jens Köcke wrote:
> Hi,
>
> Jason Weathersby wrote on Thu, 26 April 2012 14:27
>> Can you try adding the font name like:
>> xAxis.getLabel().getCaption().getFont().setName("Arial");
>
>
> Thanks! It worked. Is it expected behavior? Did I miss something in the
> docs?
>
> Regards,
> Jens
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.02675 seconds