Jfreechart deploys a linux server to generate image garbled solution

Source: Internet
Author: User
Jfreechart deploys the linux server to generate the image garbled solution. recently, jfreechart is used in the system to create a chart function. the local test (windwoxp environment) is normal, but when it is placed on the linux server, I found that the image generated for the chart is garbled, so I checked it online to solve the problem...
Jfreechart deploys a linux server to generate the image garbled solution. recently, jfreechart is used in the system to create a chart function. local testing (windwoxp environment) is normal,
However, when I put it on a linux server, I found that the image of the generated chart was garbled. so I checked the problem online and solved the problem. The following are the steps to solve the problem in combination with the solution of my online friends: www.2cto.com this is because JDK/JRE in linux lacks Chinese fonts (supported. 1. find a Chinese font that can be used in linux. I am looking for c: \ windows \ fonts \ simsun in windows. ttc (I have downloaded below) 2. put the above font file in the jre/lib/fonts directory where jdk is installed on your linux server. 3. /usr/j2sdk1. XXX/jre/lib/fonts. dir 3.1 adds a number in the first line (if it is 72, it is changed to 73) 3.2 adds the Java code simsun in the last line www.2cto.com. ttc-SungtiL GB-medium-r-normal -- 0-0-0-0-c-0-gb2312.1988-0 restart the project! OK simsun.zip (5.5 MB)

Http://dl.iteye.com/topics/download/d6b3e338-0d57-3f02-bacf-eff2e6e64414
 
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.