--- old/src/share/classes/sun/font/FileFontStrike.java 2009-08-07 10:51:41.000000000 +0200 +++ new/src/share/classes/sun/font/FileFontStrike.java 2009-08-07 10:51:41.000000000 +0200 @@ -114,7 +114,7 @@ private static native boolean initNative(); private static boolean isXPorLater = false; static { - if (FontManager.isWindows && !FontManager.useT2K && + if (FontUtilities.isWindows && !FontUtilities.useT2K && !GraphicsEnvironment.isHeadless()) { isXPorLater = initNative(); } @@ -201,7 +201,7 @@ this.disposer = new FontStrikeDisposer(fileFont, desc); initGlyphCache(); pScalerContext = NullFontScaler.getNullScalerContext(); - FontManager.deRegisterBadFont(fileFont); + SunFontManager.getInstance().deRegisterBadFont(fileFont); return; } /* First, see if native code should be used to create the glyph. @@ -211,8 +211,8 @@ * except that the advance returned by GDI is always overwritten by * the JDK rasteriser supplied one (see getGlyphImageFromWindows()). */ - if (FontManager.isWindows && isXPorLater && - !FontManager.useT2K && + if (FontUtilities.isWindows && isXPorLater && + !FontUtilities.useT2K && !GraphicsEnvironment.isHeadless() && !fileFont.useJavaRasterizer && (desc.aaHint == INTVAL_TEXT_ANTIALIAS_LCD_HRGB || @@ -241,8 +241,8 @@ } } } - if (FontManager.logging && FontManager.isWindows) { - FontManager.logger.info + if (FontUtilities.isLogging() && FontUtilities.isWindows) { + FontUtilities.getLogger().info ("Strike for " + fileFont + " at size = " + intPtSize + " use natives = " + useNatives + " useJavaRasteriser = " + fileFont.useJavaRasterizer + @@ -298,7 +298,7 @@ } long getGlyphImageFromNative(int glyphCode) { - if (FontManager.isWindows) { + if (FontUtilities.isWindows) { return getGlyphImageFromWindows(glyphCode); } else { return getGlyphImageFromX11(glyphCode); @@ -366,8 +366,8 @@ } else { if (useNatives) { glyphPtr = getGlyphImageFromNative(glyphCode); - if (glyphPtr == 0L && FontManager.logging) { - FontManager.logger.info + if (glyphPtr == 0L && FontUtilities.isLogging()) { + FontUtilities.getLogger().info ("Strike for " + fileFont + " at size = " + intPtSize + " couldn't get native glyph for code = " + glyphCode); @@ -528,7 +528,7 @@ if (segmentedCache) { int numSegments = (numGlyphs + SEGSIZE-1)/SEGSIZE; - if (FontManager.longAddresses) { + if (longAddresses) { glyphCacheFormat = SEGLONGARRAY; segLongGlyphImages = new long[numSegments][]; this.disposer.segLongGlyphImages = segLongGlyphImages; @@ -538,7 +538,7 @@ this.disposer.segIntGlyphImages = segIntGlyphImages; } } else { - if (FontManager.longAddresses) { + if (longAddresses) { glyphCacheFormat = LONGARRAY; longGlyphImages = new long[numGlyphs]; this.disposer.longGlyphImages = longGlyphImages;