1 Star 0 Fork 13

佛系少年中二/openjdk-21

forked from src-openEuler/openjdk-21 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Backport-JDK-8334123-log-the-opening-of-Type-1-fonts.patch 1.69 KB
一键复制 编辑 原始数据 按行查看 历史
wuyafang 提交于 2024-10-14 11:38 . sync bishengjdk21 patches
Subject: Backport JDK-8334123 log the opening of Type 1 fonts
---
src/java.desktop/share/classes/sun/font/Type1Font.java | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/src/java.desktop/share/classes/sun/font/Type1Font.java b/src/java.desktop/share/classes/sun/font/Type1Font.java
index 1cd046ead..cc36c193d 100644
--- a/src/java.desktop/share/classes/sun/font/Type1Font.java
+++ b/src/java.desktop/share/classes/sun/font/Type1Font.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2003, 2022, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -187,7 +187,9 @@ public class Type1Font extends FileFont {
private synchronized ByteBuffer getBuffer() throws FontFormatException {
ByteBuffer bbuf = bufferRef.get();
if (bbuf == null) {
- //System.out.println("open T1 " + platName);
+ if (FontUtilities.isLogging()) {
+ FontUtilities.logInfo("open Type 1 font: " + platName);
+ }
try {
@SuppressWarnings("removal")
RandomAccessFile raf = (RandomAccessFile)
@@ -229,6 +231,9 @@ public class Type1Font extends FileFont {
void readFile(ByteBuffer buffer) {
RandomAccessFile raf = null;
FileChannel fc;
+ if (FontUtilities.isLogging()) {
+ FontUtilities.logInfo("open Type 1 font: " + platName);
+ }
try {
raf = (RandomAccessFile)
java.security.AccessController.doPrivileged(
--
2.33.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/Autistic_boyya/openjdk-21.git
[email protected]:Autistic_boyya/openjdk-21.git
Autistic_boyya
openjdk-21
openjdk-21
master

搜索帮助