のねのBlog

パソコンの問題や、ソフトウェアの開発で起きた問題など書いていきます。よろしくお願いします^^。

setTypeface

   1060     public Typeface setTypeface(Typeface typeface) {
   1061         long typefaceNative = 0;
   1062         if (typeface != null) {
   1063             typefaceNative = typeface.native_instance;
   1064         }
   1065         native_setTypeface(mNativePaint, typefaceNative);
   1066         mTypeface = typeface;
   1067         mNativeTypeface = typefaceNative;
   1068         return typeface;
   1069     }
 {"native_setTypeface","(JJ)J", (void*) PaintGlue::setTypeface},

関数の中身が何もない。NULLを返すだけ。

    300     static jlong setTypeface(JNIEnv* env, jobject clazz, jlong objHandle, jlong typefaceHandle) {
    301         // TODO: in Paint refactoring, set typeface on android Paint, not Paint
    302         return NULL;
    303     }