--- old/src/share/classes/javax/swing/text/StyleContext.java 2009-08-07 10:51:34.000000000 +0200 +++ new/src/share/classes/javax/swing/text/StyleContext.java 2009-08-07 10:51:34.000000000 +0200 @@ -35,7 +35,7 @@ import java.lang.ref.WeakReference; import java.util.WeakHashMap; -import sun.font.FontManager; +import sun.font.FontUtilities; /** * A pool of styles and their associated resources. This class determines @@ -263,8 +263,8 @@ if (f == null) { f = new Font(family, style, size); } - if (! FontManager.fontSupportsDefaultEncoding(f)) { - f = FontManager.getCompositeFontUIResource(f); + if (! FontUtilities.fontSupportsDefaultEncoding(f)) { + f = FontUtilities.getCompositeFontUIResource(f); } FontKey key = new FontKey(family, style, size); fontTable.put(key, f);