# HG changeset patch # User rkennke # Date 1250090468 -7200 # Node ID 738bc2599ca813d8e90aa76f67689a958a42f326 # Parent de1a48b7aa41d279743df54dbe83903915c25ad2 6870238: Font2DTest fails on Debian after FontManager refactoring Summary: Use fontManager field instead of querying the FontManagerFactory Reviewed-by: igor, prr diff -r de1a48b7aa41 -r 738bc2599ca8 jdk/src/solaris/classes/sun/font/FcFontConfiguration.java --- a/jdk/src/solaris/classes/sun/font/FcFontConfiguration.java Fri Aug 07 19:36:28 2009 +0200 +++ b/jdk/src/solaris/classes/sun/font/FcFontConfiguration.java Wed Aug 12 17:21:08 2009 +0200 @@ -90,7 +90,7 @@ setFontConfiguration(); readFcInfo(); - X11FontManager fm = X11FontManager.getInstance(); + X11FontManager fm = (X11FontManager) fontManager; FontConfigManager fcm = fm.getFontConfigManager(); if (fcCompFonts == null) { fcCompFonts = fcm.loadFontConfig(); @@ -187,7 +187,7 @@ @Override public String[] getPlatformFontNames() { HashSet nameSet = new HashSet(); - X11FontManager fm = X11FontManager.getInstance(); + X11FontManager fm = (X11FontManager) fontManager; FontConfigManager fcm = fm.getFontConfigManager(); FcCompFont[] fcCompFonts = fcm.loadFontConfig(); for (int i=0; i