Class FontNatives

java.lang.Object
org.robolectric.nativeruntime.FontNatives

public final class FontNatives extends Object
Native methods for android.graphics.fonts.Font JNI registration.

Native method signatures are derived from https://cs.android.com/android/platform/superproject/+/android-12.0.0_r1:frameworks/base/graphics/java/android/graphics/fonts/Font.java

  • Method Details

    • nGetMinikinFontPtr

      public static long nGetMinikinFontPtr(long font)
    • nCloneFont

      public static long nCloneFont(long font)
    • nNewByteBuffer

      public static ByteBuffer nNewByteBuffer(long font)
    • nGetBufferAddress

      public static long nGetBufferAddress(long font)
    • nGetSourceId

      public static int nGetSourceId(long font)
    • nGetReleaseNativeFont

      public static long nGetReleaseNativeFont()
    • nGetGlyphBounds

      public static float nGetGlyphBounds(long font, int glyphId, long paint, RectF rect)
    • nGetFontMetrics

      public static float nGetFontMetrics(long font, long paint, Paint.FontMetrics metrics)
    • nGetFontPath

      public static String nGetFontPath(long fontPtr)
    • nGetLocaleList

      public static String nGetLocaleList(long familyPtr)
    • nGetPackedStyle

      public static int nGetPackedStyle(long fontPtr)
    • nGetIndex

      public static int nGetIndex(long fontPtr)
    • nGetAxisCount

      public static int nGetAxisCount(long fontPtr)
    • nGetAxisInfo

      public static long nGetAxisInfo(long fontPtr, int i)
    • nGetAvailableFontSet

      public static long[] nGetAvailableFontSet()