sunfontids.h revision 2362
0N/A/*
2362N/A * Copyright (c) 2003, 2005, Oracle and/or its affiliates. All rights reserved.
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
0N/A * This code is free software; you can redistribute it and/or modify it
0N/A * under the terms of the GNU General Public License version 2 only, as
2362N/A * published by the Free Software Foundation. Oracle designates this
0N/A * particular file as subject to the "Classpath" exception as provided
2362N/A * by Oracle in the LICENSE file that accompanied this code.
0N/A *
0N/A * This code is distributed in the hope that it will be useful, but WITHOUT
0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A * version 2 for more details (a copy is included in the LICENSE file that
0N/A * accompanied this code).
0N/A *
0N/A * You should have received a copy of the GNU General Public License version
0N/A * 2 along with this work; if not, write to the Free Software Foundation,
0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A *
2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A * or visit www.oracle.com if you need additional information or have any
2362N/A * questions.
0N/A */
0N/A
0N/A#ifndef SunFontIDIncludesDefined
0N/A#define SunFontIDIncludesDefined
0N/A
0N/A#include "jni.h"
0N/A
0N/A#ifdef __cplusplus
0N/Aextern "C" {
0N/A#endif
0N/A
0N/Atypedef struct FontManagerNativeIDs {
0N/A
0N/A /* sun/font/Font2D methods */
0N/A jmethodID getMapperMID;
0N/A jmethodID getTableBytesMID;
0N/A jmethodID canDisplayMID;
0N/A jmethodID f2dCharToGlyphMID;
0N/A
0N/A /* sun/font/CharToGlyphMapper methods */
0N/A jmethodID charToGlyphMID;
0N/A
0N/A /* sun/font/PhysicalStrike methods */
0N/A jmethodID getGlyphMetricsMID;
0N/A jmethodID getGlyphPointMID;
0N/A jmethodID adjustPointMID;
0N/A jfieldID pScalerContextFID;
0N/A
0N/A /* java/awt/geom/Rectangle2D.Float */
0N/A jclass rect2DFloatClass;
0N/A jmethodID rect2DFloatCtr;
0N/A jmethodID rect2DFloatCtr4;
0N/A jfieldID rectF2DX, rectF2DY, rectF2DWidth, rectF2DHeight;
0N/A
0N/A /* java/awt/geom/Point2D.Float */
0N/A jclass pt2DFloatClass;
0N/A jmethodID pt2DFloatCtr;
0N/A jfieldID xFID, yFID;
0N/A
0N/A /* java/awt/geom/GeneralPath */
0N/A jclass gpClass;
0N/A jmethodID gpCtr;
0N/A jmethodID gpCtrEmpty;
0N/A
0N/A /* sun/font/StrikeMetrics */
0N/A jclass strikeMetricsClass;
0N/A jmethodID strikeMetricsCtr;
0N/A
0N/A /* sun/font/TrueTypeFont */
0N/A jmethodID ttReadBlockMID;
0N/A jmethodID ttReadBytesMID;
0N/A
0N/A /* sun/font/Type1Font */
0N/A jmethodID readFileMID;
0N/A
0N/A /* sun/font/GlyphList */
0N/A jfieldID glyphListX, glyphListY, glyphListLen,
0N/A glyphImages, glyphListUsePos, glyphListPos, lcdRGBOrder, lcdSubPixPos;
0N/A} FontManagerNativeIDs;
0N/A
0N/A/* Note: we share variable in the context of fontmanager lib
0N/A but we need access method to use it from separate rasterizer lib */
0N/Aextern FontManagerNativeIDs sunFontIDs;
0N/AJNIEXPORT FontManagerNativeIDs getSunFontIDs();
0N/A
0N/A#ifdef __cplusplus
0N/A}
0N/A#endif
0N/A
0N/A#endif