< prev index next >

src/java.desktop/share/classes/sun/awt/FontConfiguration.java

Print this page
rev 60042 : 8248802: Add log helper methods to FontUtilities.java

*** 81,92 **** /* A default FontConfiguration must be created before an alternate * one to ensure proper static initialisation takes place. */ public FontConfiguration(SunFontManager fm) { if (FontUtilities.debugFonts()) { ! FontUtilities.getLogger() ! .info("Creating standard Font Configuration"); } if (FontUtilities.debugFonts() && logger == null) { logger = PlatformLogger.getLogger("sun.awt.FontConfiguration"); } fontManager = fm; --- 81,91 ---- /* A default FontConfiguration must be created before an alternate * one to ensure proper static initialisation takes place. */ public FontConfiguration(SunFontManager fm) { if (FontUtilities.debugFonts()) { ! FontUtilities.logInfo("Creating standard Font Configuration"); } if (FontUtilities.debugFonts() && logger == null) { logger = PlatformLogger.getLogger("sun.awt.FontConfiguration"); } fontManager = fm;
*** 114,125 **** public FontConfiguration(SunFontManager fm, boolean preferLocaleFonts, boolean preferPropFonts) { fontManager = fm; if (FontUtilities.debugFonts()) { ! FontUtilities.getLogger() ! .info("Creating alternate Font Configuration"); } this.preferLocaleFonts = preferLocaleFonts; this.preferPropFonts = preferPropFonts; /* fontConfig should be initialised by default constructor, and * its data tables can be shared, since readFontConfigFile doesn't --- 113,123 ---- public FontConfiguration(SunFontManager fm, boolean preferLocaleFonts, boolean preferPropFonts) { fontManager = fm; if (FontUtilities.debugFonts()) { ! FontUtilities.logInfo("Creating alternate Font Configuration"); } this.preferLocaleFonts = preferLocaleFonts; this.preferPropFonts = preferPropFonts; /* fontConfig should be initialised by default constructor, and * its data tables can be shared, since readFontConfigFile doesn't
< prev index next >