I’m writing a module to create a file for use as a resource by an Android app. As a Kotlin script I can achieve this. However, now it allegedly needs to use an Android library with a Context. (I want to call
hasGlyph() on a
android.graphics.Paint supplied with a typeface from a font resource.) I have tried “Android library,” “Java or Kotlin Library,” and “Phone & Tablet Module” in the Android Studio wizard, reading here, and Gradle heck. I have come to believe an app may be my only choice, but it seems terribly inconvenient to have to retrieve the file from the device (I don’t know how to do this yet either), for a task which is more of a simple script.
- Is this so unusual a situation?
- What would be the accomplishing setup?
A Java/Kotlin script using
java.awt.Font for the same functionality instead
Answered By – clwhisk