< prev index next >

src/java.desktop/unix/classes/sun/font/NativeStrike.java

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

*** 1,7 **** /* ! * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2003, 2020, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 113,127 **** pScalerContext = createScalerContext(nameBytes, ptSize, scale); if (pScalerContext == 0L) { SunFontManager.getInstance().deRegisterBadFont(nativeFont); pScalerContext = createNullScalerContext(); numGlyphs = 0; ! if (FontUtilities.isLogging()) { ! FontUtilities.getLogger() ! .severe("Could not create native strike " + new String(nameBytes)); - } return; } numGlyphs = nativeFont.getMapper().getNumGlyphs(); this.disposer = new NativeStrikeDisposer(nativeFont, desc, pScalerContext); --- 113,124 ---- pScalerContext = createScalerContext(nameBytes, ptSize, scale); if (pScalerContext == 0L) { SunFontManager.getInstance().deRegisterBadFont(nativeFont); pScalerContext = createNullScalerContext(); numGlyphs = 0; ! FontUtilities.logSevere("Could not create native strike " + new String(nameBytes)); return; } numGlyphs = nativeFont.getMapper().getNumGlyphs(); this.disposer = new NativeStrikeDisposer(nativeFont, desc, pScalerContext);
< prev index next >