11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 * version 2 for more details (a copy is included in the LICENSE file that
14 * accompanied this code).
15 *
16 * You should have received a copy of the GNU General Public License version
17 * 2 along with this work; if not, write to the Free Software Foundation,
18 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19 *
20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
21 * or visit www.oracle.com if you need additional information or have any
22 * questions.
23 */
24
25 /* Header for class sun_font_SunLayoutEngine */
26
27 #include <jni_util.h>
28 #include <stdlib.h>
29
30 #include "FontInstanceAdapter.h"
31 #include "LayoutEngine.h"
32 #include "sun_font_SunLayoutEngine.h"
33 #include "sunfontids.h"
34
35 void getFloat(JNIEnv* env, jobject pt, jfloat &x, jfloat &y) {
36 x = env->GetFloatField(pt, sunFontIDs.xFID);
37 y = env->GetFloatField(pt, sunFontIDs.yFID);
38 }
39
40 void putFloat(JNIEnv* env, jobject pt, jfloat x, jfloat y) {
41 env->SetFloatField(pt, sunFontIDs.xFID, x);
42 env->SetFloatField(pt, sunFontIDs.yFID, y);
43 }
44
45 static jclass gvdClass = 0;
46 static const char* gvdClassName = "sun/font/GlyphLayout$GVData";
47 static jfieldID gvdCountFID = 0;
48 static jfieldID gvdFlagsFID = 0;
49 static jfieldID gvdGlyphsFID = 0;
50 static jfieldID gvdPositionsFID = 0;
51 static jfieldID gvdIndicesFID = 0;
|
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 * version 2 for more details (a copy is included in the LICENSE file that
14 * accompanied this code).
15 *
16 * You should have received a copy of the GNU General Public License version
17 * 2 along with this work; if not, write to the Free Software Foundation,
18 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19 *
20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
21 * or visit www.oracle.com if you need additional information or have any
22 * questions.
23 */
24
25 /* Header for class sun_font_SunLayoutEngine */
26
27 #include <jni_util.h>
28 #include <stdlib.h>
29
30 #include "FontInstanceAdapter.h"
31 #include "layout/LayoutEngine.h"
32 #include "sun_font_SunLayoutEngine.h"
33 #include "sunfontids.h"
34
35 void getFloat(JNIEnv* env, jobject pt, jfloat &x, jfloat &y) {
36 x = env->GetFloatField(pt, sunFontIDs.xFID);
37 y = env->GetFloatField(pt, sunFontIDs.yFID);
38 }
39
40 void putFloat(JNIEnv* env, jobject pt, jfloat x, jfloat y) {
41 env->SetFloatField(pt, sunFontIDs.xFID, x);
42 env->SetFloatField(pt, sunFontIDs.yFID, y);
43 }
44
45 static jclass gvdClass = 0;
46 static const char* gvdClassName = "sun/font/GlyphLayout$GVData";
47 static jfieldID gvdCountFID = 0;
48 static jfieldID gvdFlagsFID = 0;
49 static jfieldID gvdGlyphsFID = 0;
50 static jfieldID gvdPositionsFID = 0;
51 static jfieldID gvdIndicesFID = 0;
|