Text clarity on jpeg image

TeeChart for Java (NetBeans, Eclipse, Android Studio, etc)
Post Reply
cathy
Newbie
Newbie
Posts: 8
Joined: Tue Mar 11, 2008 12:00 am

Text clarity on jpeg image

Post by cathy » Wed May 07, 2008 7:21 pm

I have an issue with getting text to look good when exporting to a JPeg. The text always looks like the 8 bit pixel square letters.



This is a section of code.

chart.getAxes().getBottom().getTitle().getFont().setItalic(true);

chart.getAxes().getBottom().getTitle().getFont().setSize(intFontSize);

chart.getAxes().getBottom().getTitle().getFont().setName("Lucida Sans");

chart.getAxes().getBottom().getTitle().setText("Contract Years");

Three of the four lines work as expected. The line that doesn’t seem to work is the 3rd line with setName. When it comes time to export to a JPEG, the font is not used or it is such bad quality that it looks like it is not being used. I have tried a number of different fonts and code combinations with no luck. The look does not change. Below is the line that is being used to make the JPEG.

chart.getExport().getImage().getJPEG().save(strPath);

Setting the compression quality helped sharpen the letter only. The thing that has worked best in getting the text to being better and more readable is to make it larger

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu May 08, 2008 1:40 pm

Hi cathy,

Thanks for reporting. We could reproduce the issue here and it has already been fixed for the next maintenance update.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue May 20, 2008 8:56 am

Hi cathy,

The maintenance release is already available at the client download area.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply