I try to use opentype.js in android, there is a function like this:
opentype.Font.prototype.stringToGlyphIndexes = function (s, options) {i don't know how to call it in Java. I try to call it using executeJSFunction function like this:
Function function = (Function) scope.get("stringToGlyphIndexes", scope);
function.call(rhino, scope, scope, new String[]{"Test"});
but Logcat gives an error message of TypeError: undefined is not a function. How should I call this JS function?