[OpenJDK 2D-Dev] PING: JDK-8017773: OpenJDK7 returns incorrect TrueType font metrics (original) (raw)
Yasumasa Suenaga yasuenag at gmail.com
Thu Apr 3 14:13:01 UTC 2014
- Previous message: [OpenJDK 2D-Dev] [9] Review request for 8029339 Custom MultiResolution image support on HiDPI displays
- Next message: [OpenJDK 2D-Dev] PING: JDK-8017773: OpenJDK7 returns incorrect TrueType font metrics
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi all,
Have you checked this issue?
This issue will be fixed in JDK9. However, I want fix it in JDK7 and JDK8.
Yasumasa
On 2014/03/17 9:02, Yasumasa Suenaga wrote:
Hi all,
The "Fix version" of this issue has been changed into 9 from 8-pool. Will this issue not be fixed in JDK7/8 ? I think this issue is bug of OpenJDK implementation. So this issue should be fixed ASAP.
Yasumasa On 2014/02/13 16:38, Yasumasa Suenaga wrote: Hi all,
I've reported about JDK-8017773 . Have you checked it ? I guess that many Linux distributor will ship OpenJDK8 after JDK8 GA is released. If this issue will not fix at JDK8 GA, many users who use 2D on JDK8 may encounter it. This issue occurs in OpenJDK only. However, I think there are many users who want to use 2D on OpenJDK. So I hope to fix this issue ASAP and hope to backport to JDK7.
Please cooperate. Yasumasa On 2014/02/03 15:12, Yasumasa Suenaga wrote: Hi all, My customer encountered this issue. I think this issue is caused by Bug 1435 [1] and 1659 [2] in IcedTea. I read source code of "freetype-2.5.0-4.fc20" . Bold style should affect Font Glyph only. However, current implementation of OpenJDK affects Font Face. Thus value of Ascent/Descent is incorrect. OracleJDK seems to use sun.font.T2KFontScaler to calculate these values. So this issue occurs in OpenJDK only.
I think we need to merge patches of Bug 1435 and 1659 in IcedTea to fix JDK-8017773 . Could you merge these patches ? Please cooperate. Thanks, Yasumasa [1] http://icedtea.classpath.org/bugzilla/showbug.cgi?id=1435 [2] http://icedtea.classpath.org/bugzilla/showbug.cgi?id=1659 ------ D E T A I L S ------ I've created testcase as "JavaApplication1.java" . Result as: OracleJDK 6 Update 31 ---------------- [root at RHEL6-5 font]# /usr/local/jdk1.6.031/bin/java JavaApplication1 JDK: 1.6.031 VM: Java HotSpot(TM) 64-Bit Server VM java.awt.Font[family=IPAMincho,name=IPAMincho,style=plain,size=50] Ascent: 43.99414 Descent: 6.0058594 java.awt.Font[family=IPAMincho,name=IPAMincho,style=bold,size=50] Ascent: 43.99414 Descent: 6.0058594 ---------------- OpenJDK7 (in RHEL6.5) ---------------- [root at RHEL6-5 font]# java JavaApplication1 JDK: 1.7.045 VM: OpenJDK 64-Bit Server VM java.awt.Font[family=IPAMincho,name=IPAMincho,style=plain,size=50] Ascent: 43.99414 Descent: 6.0058594 java.awt.Font[family=IPAMincho,name=IPAMincho,style=bold,size=50] Ascent: 45.60547 Descent: 4.3945312 ----------------
- Previous message: [OpenJDK 2D-Dev] [9] Review request for 8029339 Custom MultiResolution image support on HiDPI displays
- Next message: [OpenJDK 2D-Dev] PING: JDK-8017773: OpenJDK7 returns incorrect TrueType font metrics
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]