Why my characters are so ugly?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Post Reply
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: 11679
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: Ask your company to buy the JFreeChart Developer Guide
:idea: Check out other products sold by my company Object Refinery Limited

Post Reply