<div>It's very difficult to understand your issue, beside, it seems that you are manually copying around libraries and it's clear that this only has the effect of destabilizing the platform.</div><div><br></div><div>I suggest to start with a clear description of what the problem is, what is the expected behavior, what is the environment and how to reproduce it, in a simple, possibly self contained way.</div><div><br></div>Then you should file a bug report.<div><br><div>Cheers,</div><div>Mario</div><div><br>On Friday, 20 May 2016, 31731705 <<a href="mailto:31731705@qq.com">31731705@qq.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="line-height:21px">Hi Dalibor,</div><div style="line-height:21px"><br></div><div style="line-height:21px">Actually this time I download OpenJDK source code and build it myself, but I still met this issue. I wonder why font files in jre/lib/fonts folder impact openjre.</div><div style="line-height:21px"><br></div><div style="line-height:21px">Here is a brief of this problem, I try to decribe it clearly.</div><div style="line-height:21px"><br></div><div style="line-height:21px">I build OpenJDK, and copy j2re-image to my folder such as /home/rong/jre, and use this jre to run my java applicaton. In further study I have found following codes, fm will have wrong value as long as jre/lib/fonts has font files (some ttf files).</div><div style="line-height:21px"><br></div><div style="line-height:21px"><div style="font-family:'lucida Grande',Verdana,'Microsoft YaHei';line-height:23.7999992370605px"><span style="white-space:pre-wrap">    </span>        BufferedImage image = new BufferedImage(200, 200, BufferedImage.TYPE_INT_RGB);</div><div style="font-family:'lucida Grande',Verdana,'Microsoft YaHei';line-height:23.7999992370605px"><span style="white-space:pre-wrap">       </span>        Graphics2D g2 = image.createGraphics();</div><div style="font-family:'lucida Grande',Verdana,'Microsoft YaHei';line-height:23.7999992370605px"><span style="white-space:pre-wrap">      </span>        FontMetrics fm = g2.getFontMetrics();</div><div style="font-family:'lucida Grande',Verdana,'Microsoft YaHei';line-height:23.7999992370605px"><br></div><div style="font-family:'lucida Grande',Verdana,'Microsoft YaHei';line-height:23.7999992370605px">But if I moved these font files into /usr/share/fonts folder, the problems goes away. I'm not sure why these font files impact open jre run time.</div><div style="font-family:'lucida Grande',Verdana,'Microsoft YaHei';line-height:23.7999992370605px">I don't think this problem is related to centos.</div><div style="font-family:'lucida Grande',Verdana,'Microsoft YaHei';line-height:23.7999992370605px"><br></div><div style="font-family:'lucida Grande',Verdana,'Microsoft YaHei';line-height:23.7999992370605px">BTW, I have installed freetype and fontconfig package.</div><div style="font-family:'lucida Grande',Verdana,'Microsoft YaHei';line-height:23.7999992370605px"><br></div></div><div style="line-height:21px">Regards,</div><div style="line-height:21px">Rong</div></div><div><div><br></div><div><br></div><div style="font-size:12px;font-family:Arial Narrow;padding:2px 0 2px 0">------------------ Original ------------------</div><div style="font-size:12px;background:#efefef;padding:8px"><div><b>From: </b> "dalibor topic";<<a href="javascript:_e(%7B%7D,'cvml','dalibor.topic@oracle.com');" target="_blank">dalibor.topic@oracle.com</a>>;</div><div><b>Date: </b> Fri, May 20, 2016 08:33 PM</div><div><b>To: </b> "awt-dev"<<a href="javascript:_e(%7B%7D,'cvml','awt-dev@openjdk.java.net');" target="_blank">awt-dev@openjdk.java.net</a>>; </div><div></div><div><b>Subject: </b> Re: <AWT Dev> An issue of OpenJRE</div></div><div><br></div>On 20.05.2016 10:45, 31731705 wrote:<br>><br>> Can someboday tell me the differences<br><br>If you have encountered problems with binaries provided by CentOS, <br>you'll need to contact CentOS for support.<br><br>cheers,<br>dalibor topic<br>-- <br><<a href="http://www.oracle.com" target="_blank">http://www.oracle.com</a>> Dalibor Topic | Principal Product Manager<br>Phone: +494089091214 <tel:+494089091214> | Mobile: +491737185961<br><tel:+491737185961><br><br>ORACLE Deutschland B.V. & Co. KG | Kühnehöfe 5 | 22761 Hamburg<br><br>ORACLE Deutschland B.V. & Co. KG<br>Hauptverwaltung: Riesstr. 25, D-80992 München<br>Registergericht: Amtsgericht München, HRA 95603<br><br>Komplementärin: ORACLE Deutschland Verwaltung B.V.<br>Hertogswetering 163/167, 3543 AS Utrecht, Niederlande<br>Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697<br>Geschäftsführer: Alexander van der Ven, Jan Schultheiss, Val Maher<br><br><<a href="http://www.oracle.com/commitment" target="_blank">http://www.oracle.com/commitment</a>> Oracle is committed to developing<br>practices and products that help protect the environment</div></blockquote></div></div><br><br>-- <br>pgp key: <a href="http://subkeys.pgp.net/" target="_blank">http://subkeys.pgp.net/</a> PGP Key ID: 80F240CF<br>Fingerprint: BA39 9666 94EC 8B73 27FA  FC7C 4086 63E3 80F2 40CF<br><br>Java Champion - Blog: <a href="http://neugens.wordpress.com" target="_blank">http://neugens.wordpress.com</a> - Twitter: @neugens<br>Proud GNU Classpath developer: <a href="http://www.classpath.org/" target="_blank">http://www.classpath.org/</a><br>OpenJDK: <a href="http://openjdk.java.net/projects/caciocavallo/" target="_blank">http://openjdk.java.net/projects/caciocavallo/</a><br><br>Please, support open standards:<br><a href="http://endsoftpatents.org/" target="_blank">http://endsoftpatents.org/</a><br><br>