Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/openjdk-multiarch-jdk8u
Path: blob/aarch64-shenandoah-jdk8u272-b10/jdk/src/share/native/sun/font/sunfontids.h
38829 views
1
/*
2
* Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
*
5
* This code is free software; you can redistribute it and/or modify it
6
* under the terms of the GNU General Public License version 2 only, as
7
* published by the Free Software Foundation. Oracle designates this
8
* particular file as subject to the "Classpath" exception as provided
9
* by Oracle in the LICENSE file that accompanied this code.
10
*
11
* This code is distributed in the hope that it will be useful, but WITHOUT
12
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14
* version 2 for more details (a copy is included in the LICENSE file that
15
* accompanied this code).
16
*
17
* You should have received a copy of the GNU General Public License version
18
* 2 along with this work; if not, write to the Free Software Foundation,
19
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20
*
21
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22
* or visit www.oracle.com if you need additional information or have any
23
* questions.
24
*/
25
26
#ifndef SunFontIDIncludesDefined
27
#define SunFontIDIncludesDefined
28
29
#include "jni.h"
30
31
#ifdef __cplusplus
32
extern "C" {
33
#endif
34
35
typedef struct FontManagerNativeIDs {
36
37
/* sun/font/Font2D methods */
38
jmethodID getMapperMID;
39
jmethodID getTableBytesMID;
40
jmethodID canDisplayMID;
41
jmethodID f2dCharToGlyphMID;
42
43
/* sun/font/CharToGlyphMapper methods */
44
jmethodID charToGlyphMID;
45
46
/* sun/font/PhysicalStrike methods */
47
jmethodID getGlyphMetricsMID;
48
jmethodID getGlyphPointMID;
49
jmethodID adjustPointMID;
50
jfieldID pScalerContextFID;
51
52
/* java/awt/geom/Rectangle2D.Float */
53
jclass rect2DFloatClass;
54
jmethodID rect2DFloatCtr;
55
jmethodID rect2DFloatCtr4;
56
jfieldID rectF2DX, rectF2DY, rectF2DWidth, rectF2DHeight;
57
58
/* java/awt/geom/Point2D.Float */
59
jclass pt2DFloatClass;
60
jmethodID pt2DFloatCtr;
61
jfieldID xFID, yFID;
62
63
/* java/awt/geom/GeneralPath */
64
jclass gpClass;
65
jmethodID gpCtr;
66
jmethodID gpCtrEmpty;
67
68
/* sun/font/StrikeMetrics */
69
jclass strikeMetricsClass;
70
jmethodID strikeMetricsCtr;
71
72
/* sun/font/TrueTypeFont */
73
jmethodID ttReadBlockMID;
74
jmethodID ttReadBytesMID;
75
76
/* sun/font/Type1Font */
77
jmethodID readFileMID;
78
79
/* sun/font/GlyphList */
80
jfieldID glyphListX, glyphListY, glyphListLen,
81
glyphImages, glyphListUsePos, glyphListPos, lcdRGBOrder, lcdSubPixPos;
82
} FontManagerNativeIDs;
83
84
/* Note: we share variable in the context of fontmanager lib
85
but we need access method to use it from separate rasterizer lib */
86
extern FontManagerNativeIDs sunFontIDs;
87
JNIEXPORT FontManagerNativeIDs getSunFontIDs(JNIEnv* env);
88
89
#ifdef __cplusplus
90
}
91
#endif
92
93
#endif
94
95