Class FontFamilyNatives

java.lang.Object
org.robolectric.nativeruntime.FontFamilyNatives

public final class FontFamilyNatives extends Object
Native methods for the deprecated android.graphics.FontFamily JNI registration. Note this is different from FontsFontFamilyNatives.

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

  • Method Details

    • nInitBuilder

      public static long nInitBuilder(String langs, int variant)
    • nAllowUnsupportedFont

      public static void nAllowUnsupportedFont(long builderPtr)
    • nCreateFamily

      public static long nCreateFamily(long mBuilderPtr)
    • nGetBuilderReleaseFunc

      public static long nGetBuilderReleaseFunc()
    • nGetFamilyReleaseFunc

      public static long nGetFamilyReleaseFunc()
    • nAddFont

      public static boolean nAddFont(long builderPtr, ByteBuffer font, int ttcIndex, int weight, int isItalic)
    • nAddFontWeightStyle

      public static boolean nAddFontWeightStyle(long builderPtr, ByteBuffer font, int ttcIndex, int weight, int isItalic)
    • nAddAxisValue

      public static void nAddAxisValue(long builderPtr, int tag, float value)