Why my characters are so ugly?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Pasco
Posts: 3
Joined: Sat Nov 11, 2017 4:50 pm
antibot: No, of course not.

Why my characters are so ugly?

Post by Pasco » Sat Nov 11, 2017 5:06 pm

Hi,

Characters in my titles, legend and axis labels are fuzzy, while yours, for exemple in TimeSeriesChartDemo1, are perfectly anti-aliased.
Where can be my error?

P.

Pasco
Posts: 3
Joined: Sat Nov 11, 2017 4:50 pm
antibot: No, of course not.

Re: Why my characters are so ugly?

Post by Pasco » Sat Nov 11, 2017 5:38 pm

In fact, your demo fully uses the resolution of my screen (retina) while my application doesn't.
Screenshot: https://www.dropbox.com/s/1umlduf6hbrgg ... t.png?dl=0
Why ?

Pasco
Posts: 3
Joined: Sat Nov 11, 2017 4:50 pm
antibot: No, of course not.

Re: Why my characters are so ugly?

Post by Pasco » Sat Nov 11, 2017 9:37 pm

Ok.

With

Code: Select all

ChartPanel panel = new ChartPanel(chart, true);
the resolution is low.

With

Code: Select all

ChartPanel panel = new ChartPanel(chart, false);
the resolution is high.

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Re: Why my characters are so ugly?

Post by david.gilbert » Sun Nov 12, 2017 11:46 pm

This is a feature where the ChartPanel keeps an offscreen image as a buffer for the charts it draws. Unfortunately it doesn't work well with retina displays, so for better output quality you should disable the buffering via the constructor.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

colomb
Posts: 15
Joined: Fri May 29, 2009 8:10 pm

Re: Why my characters are so ugly?

Post by colomb » Fri Oct 18, 2019 4:23 pm

david.gilbert wrote:
Sun Nov 12, 2017 11:46 pm
This is a feature where the ChartPanel keeps an offscreen image as a buffer for the charts it draws. Unfortunately it doesn't work well with retina displays, so for better output quality you should disable the buffering via the constructor.
This also appears to be an issue with Windows 10 display scaling and Java 11 ( probably 9 & 10 as well ). Would filing a bug on github help resolve the issue?

Locked