8334123: log the opening of Type 1 fonts
Reviewed-by: prr
This commit is contained in:
parent
57b6481449
commit
f8c657f671
@ -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.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* 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 {
|
private synchronized ByteBuffer getBuffer() throws FontFormatException {
|
||||||
ByteBuffer bbuf = bufferRef.get();
|
ByteBuffer bbuf = bufferRef.get();
|
||||||
if (bbuf == null) {
|
if (bbuf == null) {
|
||||||
//System.out.println("open T1 " + platName);
|
if (FontUtilities.isLogging()) {
|
||||||
|
FontUtilities.logInfo("open Type 1 font: " + platName);
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
RandomAccessFile raf = (RandomAccessFile)
|
RandomAccessFile raf = (RandomAccessFile)
|
||||||
@ -229,6 +231,9 @@ public class Type1Font extends FileFont {
|
|||||||
void readFile(ByteBuffer buffer) {
|
void readFile(ByteBuffer buffer) {
|
||||||
RandomAccessFile raf = null;
|
RandomAccessFile raf = null;
|
||||||
FileChannel fc;
|
FileChannel fc;
|
||||||
|
if (FontUtilities.isLogging()) {
|
||||||
|
FontUtilities.logInfo("open Type 1 font: " + platName);
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
raf = (RandomAccessFile)
|
raf = (RandomAccessFile)
|
||||||
java.security.AccessController.doPrivileged(
|
java.security.AccessController.doPrivileged(
|
||||||
|
Loading…
Reference in New Issue
Block a user