i'm new in skia.
i want know, how kerning(or advance) between 2 glyphs?
in project inluded modul of skia, , in native have
jniexport jint jnicall java_com_example_kernme_nativeskia_gethellofromnative(jnienv *env, jclass clazz, jobject assetmanager, jstring path, jstring text) { aassetmanager *mgr = aassetmanager_fromjava(env, assetmanager); if (mgr == null) return false; const char *nativestring = env->getstringutfchars(path, 0); aasset* asset = aassetmanager_open(mgr, nativestring, aasset_mode_buffer); if (null == asset) return false; skstream* stream = new assetstream(asset, true); sktypeface* face = sktypeface::createfromstream(stream); if(face == null) return false;
in jstring have 2 symbols("ab"), want create gplyphs , information glyphs(etc. advance, kearning). i'm seeking function this:
int get_kerning(leftglyph, rightglyph)
thanks!!!
Comments
Post a Comment