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
27 /*
28 * (C) Copyright IBM Corp. 1998-2001 - All Rights Reserved
29 *
30 * The original version of this source code and documentation is
31 * copyrighted and owned by IBM. These materials are provided
32 * under terms of a License Agreement between IBM and Sun.
33 * This technology is protected by multiple US and International
34 * patents. This notice and attribution to IBM may not be removed.
35 */
36
37 #ifndef __FONTINSTANCEADAPTER_H
38 #define __FONTINSTANCEADAPTER_H
39
40 #include "LETypes.h"
41 #include "LEFontInstance.h"
42 #include "jni.h"
43 #include "sunfontids.h"
44 #include "fontscalerdefs.h"
45 #include <jni_util.h>
46
47 class FontInstanceAdapter : public LEFontInstance {
48 private:
49 JNIEnv *env;
50 jobject font2D;
51 jobject fontStrike;
52
53 float xppem;
54 float yppem;
55
56 float xScaleUnitsToPoints;
57 float yScaleUnitsToPoints;
58
59 float xScalePixelsToUnits;
60 float yScalePixelsToUnits;
61
|
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
27 /*
28 * (C) Copyright IBM Corp. 1998-2001 - All Rights Reserved
29 *
30 * The original version of this source code and documentation is
31 * copyrighted and owned by IBM. These materials are provided
32 * under terms of a License Agreement between IBM and Sun.
33 * This technology is protected by multiple US and International
34 * patents. This notice and attribution to IBM may not be removed.
35 */
36
37 #ifndef __FONTINSTANCEADAPTER_H
38 #define __FONTINSTANCEADAPTER_H
39
40 #include "layout/LETypes.h"
41 #include "layout/LEFontInstance.h"
42 #include "jni.h"
43 #include "sunfontids.h"
44 #include "fontscalerdefs.h"
45 #include <jni_util.h>
46
47 class FontInstanceAdapter : public LEFontInstance {
48 private:
49 JNIEnv *env;
50 jobject font2D;
51 jobject fontStrike;
52
53 float xppem;
54 float yppem;
55
56 float xScaleUnitsToPoints;
57 float yScaleUnitsToPoints;
58
59 float xScalePixelsToUnits;
60 float yScalePixelsToUnits;
61
|