< prev index next >

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

Print this page
rev 59383 : [mq]: final

*** 1,7 **** /* ! * Copyright (c) 2003, 2014, 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
*** 74,85 **** * This isn't a big hit in time, since a boolean test is sufficient * to choose the usual default path, nor in memory for fonts which take * the native path, since fonts have contiguous zero-based glyph indexes, * and these obviously do all exist in the font. */ - protected boolean checkedNatives; - protected boolean useNatives; protected NativeFont[] nativeFonts; protected char[] glyphToCharMap; /* * @throws FontFormatException if the font can't be opened */ --- 74,83 ----
*** 88,108 **** super(platname, nativeNames); } FontStrike createStrike(FontStrikeDesc desc) { - if (!checkedNatives) { - checkUseNatives(); - } return new FileFontStrike(this, desc); } - protected boolean checkUseNatives() { - checkedNatives = true; - return useNatives; - } - /* This method needs to be accessible to FontManager if there is * file pool management. It may be a no-op. */ protected abstract void close(); --- 86,98 ----
< prev index next >