< prev index next >

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

Print this page
rev 60064 : 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
*** 114,125 **** 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(); --- 114,124 ---- if (pScalerContext == 0L) { SunFontManager.getInstance().deRegisterBadFont(nativeFont); pScalerContext = createNullScalerContext(); numGlyphs = 0; if (FontUtilities.isLogging()) { ! FontUtilities.logSevere("Could not create native strike " + new String(nameBytes)); } return; } numGlyphs = nativeFont.getMapper().getNumGlyphs();
< prev index next >