From ed62d1599423ed8a22041c0891ac700ac162fe9b Mon Sep 17 00:00:00 2001 From: prr Date: Wed, 19 Jan 2011 17:02:52 -0800 Subject: [PATCH] 6983037: closed/java/awt/font/FontNames/Type1Fonts.java failed due to missed font Reviewed-by: igor --- src/share/classes/sun/font/SunFontManager.java | 6 +++--- src/solaris/classes/sun/awt/X11FontManager.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/share/classes/sun/font/SunFontManager.java b/src/share/classes/sun/font/SunFontManager.java index 1ea53c1c2..7bd2864db 100644 --- a/src/share/classes/sun/font/SunFontManager.java +++ b/src/share/classes/sun/font/SunFontManager.java @@ -2221,7 +2221,7 @@ public abstract class SunFontManager implements FontSupport, FontManagerForSGE { return FontUtilities.getFont2D(font).supportsEncoding(encoding); } - public abstract String getFontPath(boolean noType1Fonts); + protected abstract String getFontPath(boolean noType1Fonts); private Thread fileCloser = null; Vector tmpFontFiles = null; @@ -2935,7 +2935,7 @@ public abstract class SunFontManager implements FontSupport, FontManagerForSGE { } protected String[] getPlatformFontDirs(boolean noType1Fonts) { - String path = getFontPath(true); + String path = getPlatformFontPath(noType1Fonts); StringTokenizer parser = new StringTokenizer(path, File.pathSeparator); ArrayList pathList = new ArrayList(); @@ -3047,7 +3047,7 @@ public abstract class SunFontManager implements FontSupport, FontManagerForSGE { /* A call to this method should be followed by a call to * registerFontDirs(..) */ - protected String getPlatformFontPath(boolean noType1Font) { + public String getPlatformFontPath(boolean noType1Font) { if (fontPath == null) { fontPath = getFontPath(noType1Font); } diff --git a/src/solaris/classes/sun/awt/X11FontManager.java b/src/solaris/classes/sun/awt/X11FontManager.java index 36eeb15d6..573d250ac 100644 --- a/src/solaris/classes/sun/awt/X11FontManager.java +++ b/src/solaris/classes/sun/awt/X11FontManager.java @@ -763,7 +763,7 @@ public class X11FontManager extends SunFontManager { public synchronized native String getFontPathNative(boolean noType1Fonts); - public synchronized String getFontPath(boolean noType1Fonts) { + protected synchronized String getFontPath(boolean noType1Fonts) { isHeadless(); // make sure GE is inited, as its the X11 lock. return getFontPathNative(noType1Fonts); } -- GitLab