jdk/src/share/native/sun/font/FontInstanceAdapter.h

Print this page
rev 7322 : [mq]: system-icu


  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 #ifdef USE_EXTERNAL_ICU_LE
  41 #include <layout/LETypes.h>
  42 #include <layout/LEFontInstance.h>
  43 #else
  44 #include "layout/LETypes.h"
  45 #include "layout/LEFontInstance.h"
  46 #endif
  47 #include "jni.h"
  48 #include "sunfontids.h"
  49 #include "fontscalerdefs.h"
  50 #include <jni_util.h>
  51 
  52 class FontInstanceAdapter : public LEFontInstance {
  53 private:
  54     JNIEnv *env;
  55     jobject font2D;
  56     jobject fontStrike;
  57 
  58     float xppem;
  59     float yppem;
  60 
  61     float xScaleUnitsToPoints;
  62     float yScaleUnitsToPoints;
  63 
  64     float xScalePixelsToUnits;
  65     float yScalePixelsToUnits;
  66