Hi Dalibor,
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. Here is a brief of this problem, I try to decribe it clearly. 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). BufferedImage image = new BufferedImage(200, 200, BufferedImage.TYPE_INT_RGB); Graphics2D g2 = image.createGraphics(); FontMetrics fm = g2.getFontMetrics(); 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. I don't think this problem is related to centos. BTW, I have installed freetype and fontconfig package. Regards, Rong ------------------ Original ------------------ From: "dalibor topic";<dalibor.to...@oracle.com>; Date: Fri, May 20, 2016 08:33 PM To: "awt-dev"<awt-dev@openjdk.java.net>; Subject: Re: <AWT Dev> An issue of OpenJRE On 20.05.2016 10:45, 31731705 wrote: > > Can someboday tell me the differences If you have encountered problems with binaries provided by CentOS, you'll need to contact CentOS for support. cheers, dalibor topic -- <http://www.oracle.com> Dalibor Topic | Principal Product Manager Phone: +494089091214 <tel:+494089091214> | Mobile: +491737185961 <tel:+491737185961> ORACLE Deutschland B.V. & Co. KG | Kühnehöfe 5 | 22761 Hamburg ORACLE Deutschland B.V. & Co. KG Hauptverwaltung: Riesstr. 25, D-80992 München Registergericht: Amtsgericht München, HRA 95603 Komplementärin: ORACLE Deutschland Verwaltung B.V. Hertogswetering 163/167, 3543 AS Utrecht, Niederlande Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697 Geschäftsführer: Alexander van der Ven, Jan Schultheiss, Val Maher <http://www.oracle.com/commitment> Oracle is committed to developing practices and products that help protect the environment