sunFont.c revision 430
383N/A * Copyright 2007-2008 Sun Microsystems, Inc. All Rights Reserved. 79N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 79N/A * This code is free software; you can redistribute it and/or modify it 79N/A * under the terms of the GNU General Public License version 2 only, as 79N/A * published by the Free Software Foundation. Sun designates this 79N/A * particular file as subject to the "Classpath" exception as provided 79N/A * by Sun in the LICENSE file that accompanied this code. 79N/A * This code is distributed in the hope that it will be useful, but WITHOUT 79N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 79N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 79N/A * version 2 for more details (a copy is included in the LICENSE file that 79N/A * accompanied this code). 79N/A * You should have received a copy of the GNU General Public License version 79N/A * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, * CA 95054 USA or visit www.sun.com if you need additional information or /* Eventually we may rework it to be a singleton. * and on other hand malformed fonts (main source of null glyph images) * are supposed to be collected fast. * But perhaps it is still right thing to do. * Even better is to eliminate the need to have this native method * but for this it is necessary to rework Strike and drawing logic * to be able to live with NULL pointers without performance hit. * Class: sun_font_FontManager * Method: getPlatformFontVar char *c =
getenv(
"JAVA2D_USEPLATFORMFONT");
/* placeholder for extern variable */ "<init>",
"(FFFFFFFFFF)V");
* Class: sun_font_StrikeCache /* Note this is used for freeing a glyph which was allocated * but never placed into the glyph cache. The caller holds the * only reference, therefore it is unnecessary to invalidate any * Class: sun_font_StrikeCache * Method: freeLongPointer /* Note this is used for freeing a glyph which was allocated * but never placed into the glyph cache. The caller holds the * only reference, therefore it is unnecessary to invalidate any * Class: sun_font_StrikeCache // invalidate this glyph's accelerated cache cell * Class: sun_font_StrikeCache