< prev index next >

src/java.desktop/share/classes/sun/font/FileFontStrike.java

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

*** 221,232 **** matrix[0] >= 3.0 && matrix[0] <= 100.0) && !((TrueTypeFont)fileFont).useEmbeddedBitmapsForSize(intPtSize)) { useNatives = true; } if (FontUtilities.isLogging() && FontUtilities.isWindows) { ! FontUtilities.getLogger().info ! ("Strike for " + fileFont + " at size = " + intPtSize + " use natives = " + useNatives + " useJavaRasteriser = " + fileFont.useJavaRasterizer + " AAHint = " + desc.aaHint + " Has Embedded bitmaps = " + ((TrueTypeFont)fileFont). --- 221,231 ---- matrix[0] >= 3.0 && matrix[0] <= 100.0) && !((TrueTypeFont)fileFont).useEmbeddedBitmapsForSize(intPtSize)) { useNatives = true; } if (FontUtilities.isLogging() && FontUtilities.isWindows) { ! FontUtilities.logInfo("Strike for " + fileFont + " at size = " + intPtSize + " use natives = " + useNatives + " useJavaRasteriser = " + fileFont.useJavaRasterizer + " AAHint = " + desc.aaHint + " Has Embedded bitmaps = " + ((TrueTypeFont)fileFont).
*** 317,328 **** StrikeCache.unsafe.putFloat(ptr + StrikeCache.xAdvanceOffset, advance); return ptr; } else { if (FontUtilities.isLogging()) { ! FontUtilities.getLogger().warning( ! "Failed to render glyph using GDI: code=" + glyphCode + ", fontFamily=" + family + ", style=" + style + ", size=" + size); } return fileFont.getGlyphImage(pScalerContext, glyphCode); } --- 316,326 ---- StrikeCache.unsafe.putFloat(ptr + StrikeCache.xAdvanceOffset, advance); return ptr; } else { if (FontUtilities.isLogging()) { ! FontUtilities.logWarning("Failed to render glyph using GDI: code=" + glyphCode + ", fontFamily=" + family + ", style=" + style + ", size=" + size); } return fileFont.getGlyphImage(pScalerContext, glyphCode); }
*** 354,371 **** return glyphPtr; } else { if (useNatives) { glyphPtr = getGlyphImageFromNative(glyphCode); if (glyphPtr == 0L && FontUtilities.isLogging()) { ! FontUtilities.getLogger().info ! ("Strike for " + fileFont + " at size = " + intPtSize + " couldn't get native glyph for code = " + glyphCode); } ! } if (glyphPtr == 0L) { ! glyphPtr = fileFont.getGlyphImage(pScalerContext, ! glyphCode); } return setCachedGlyphPtr(glyphCode, glyphPtr); } } --- 352,368 ---- return glyphPtr; } else { if (useNatives) { glyphPtr = getGlyphImageFromNative(glyphCode); if (glyphPtr == 0L && FontUtilities.isLogging()) { ! FontUtilities.logInfo("Strike for " + fileFont + " at size = " + intPtSize + " couldn't get native glyph for code = " + glyphCode); } ! } ! if (glyphPtr == 0L) { ! glyphPtr = fileFont.getGlyphImage(pScalerContext, glyphCode); } return setCachedGlyphPtr(glyphCode, glyphPtr); } }
< prev index next >