jfreechart-fx icon indicating copy to clipboard operation
jfreechart-fx copied to clipboard

Font rendering issue when using a transparent chart background

Open ssaring opened this issue 7 years ago • 1 comments

Hello,

it's great to see offical JavaFX support in JFreeChart - thanks a lot!

In my application I need to set a transparent background for the chart because the chart needs to have the same background color as the dialog where it is shown. This is done by setting the background color with alpha 0.0. Unfortunately this causes a font rendering issue since JFreeChart-FX 1.0, this was not the case with the unofficial/unreleased version before. All the rendered text (e.g. for the axis, titles, legends, ...) looks very blurry now.

I'm adding a modified version of your demo applications and some screenshots which show the problem. In my application it looks even worse, I'm using other fonts there.

Not transparent, proper rendering:

demo-not_transparent

Transparent background, blurry rendering: demo-transparent_blurry

Bye, Stefan

ssaring avatar Nov 18 '17 17:11 ssaring

Modified demo application:

BarChartFXDemo1.java.gz

ssaring avatar Nov 18 '17 17:11 ssaring