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.
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. Then you should file a bug report. Cheers, Mario On Friday, 20 May 2016, 31731705 <31731...@qq.com> wrote: > 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 > <javascript:_e(%7B%7D,'cvml','dalibor.to...@oracle.com');>>; > *Date: * Fri, May 20, 2016 08:33 PM > *To: * "awt-dev"<awt-dev@openjdk.java.net > <javascript:_e(%7B%7D,'cvml','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 > -- pgp key: http://subkeys.pgp.net/ PGP Key ID: 80F240CF Fingerprint: BA39 9666 94EC 8B73 27FA FC7C 4086 63E3 80F2 40CF Java Champion - Blog: http://neugens.wordpress.com - Twitter: @neugens Proud GNU Classpath developer: http://www.classpath.org/ OpenJDK: http://openjdk.java.net/projects/caciocavallo/ Please, support open standards: http://endsoftpatents.org/