Why my characters are so ugly?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).

Why my characters are so ugly?

Postby 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

Re: Why my characters are so ugly?

Postby 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/1umlduf6hbrggnp/screenshot.png?dl=0
Why ?
Pasco
 
Posts: 3
Joined: Sat Nov 11, 2017 4:50 pm

Re: Why my characters are so ugly?

Postby 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.
Pasco
 
Posts: 3
Joined: Sat Nov 11, 2017 4:50 pm

Re: Why my characters are so ugly?

Postby 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
david.gilbert
JFreeChart Project Leader
 
Posts: 11653
Joined: Fri Mar 14, 2003 10:29 am


Return to JFreeChart

Who is online

Users browsing this forum: Bing [Bot] and 5 guests