<div>If this mail distrub you please ignore that, sorry for inconveniences. I really hope to get your help.</div><div><br></div>Recently I'm porting a project form oracle jdk to open jdk, and compile process is smooth and most parts runs well, but jfreechart cannot work. <div>I have submitted a question to jfreechart forum (http://www.jfree.org/forum/viewtopic.php?f=3&t=117569&p=179724#p179724<span style="line-height: 1.5;">).</span></div><div><span style="line-height: 1.5;"><br></span></div><div><span style="line-height: 1.5;">However after sometime troubleshooting, I find the problem is related with open jre. That means jfreechart works fine in oracle jre but fails in open jre.</span></div><div><span style="line-height: 1.5;">Again I find more details, when I run following codes I will get wrong result, which causes jfreechart not to work.</span></div><div><span style="line-height: 1.5;"><br></span></div><div><div><span class="Apple-tab-span" style="white-space: pre;">        </span>        BufferedImage image = new BufferedImage(200, 200, BufferedImage.TYPE_INT_RGB);</div><div><span class="Apple-tab-span" style="white-space:pre">   </span>        Graphics2D g2 = image.createGraphics();</div><div><span class="Apple-tab-span" style="white-space:pre">  </span>        FontMetrics fm = g2.getFontMetrics();</div><div style="line-height: 1.5;"><br></div></div><div style="line-height: 1.5;">The fm includes strange value, if I switch to oracle jre fm has right value. I don't know why. Can somebody help me?</div>