-
Bug
-
Resolution: Fixed
-
P2
-
8u152, 9
-
b29
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8232382 | 8u241 | Alexey Ivanov | P2 | Closed | Fixed | b02 |
JDK-8232609 | 8u231 | Alexey Ivanov | P2 | Closed | Fixed | b33 |
JDK-8235094 | emb-8u241 | Alexey Ivanov | P2 | Resolved | Fixed | team |
JDK-8238399 | 7u271 | Alexey Ivanov | P2 | Closed | Fixed | b01 |
import java.io.File;
import java.awt.Font;
import java.awt.font.FontRenderContext;
public class SlowFontInit {
public static void main(String[] args) throws Exception {
String name = "NotoSansCJKjp-Regular.otf";
if (args.length > 0) {
name = args[0];
}
Font f = Font.createFont(Font.TRUETYPE_FONT, new File(name));
FontRenderContext frc = new FontRenderContext(null, false, false);
long t0 = System.currentTimeMillis();
f.getStringBounds(" ", frc);
long t1 = System.currentTimeMillis();
System.out.println((t1-t0)+"ms. "+ f.getFontName());
}
}
$ java SlowFontInit
1802ms. Noto Sans CJK JP Regular
Almost 2 seconds ..
- backported by
-
JDK-8235094 JDK 9 is really slow initialising some OTF/CFF fonts.
- Resolved
-
JDK-8232382 JDK 9 is really slow initialising some OTF/CFF fonts.
- Closed
-
JDK-8232609 JDK 9 is really slow initialising some OTF/CFF fonts.
- Closed
-
JDK-8238399 JDK 9 is really slow initialising some OTF/CFF fonts.
- Closed
- duplicates
-
JDK-8233828 Add OpenType CFF support in JDK 7
- Closed
- relates to
-
JDK-8074562 CID keyed OpenType fonts are not supported by T2K
- Resolved
-
JDK-8209672 Oracle JDK 8 equivalent fix for JDK-8188030: AIOOBE in font manager init
- Resolved