Package org.robolectric.nativeruntime
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 Summary
Modifier and Type Method Description static void
nAddAxisValue(long builderPtr, int tag, float value)
static boolean
nAddFont(long builderPtr, ByteBuffer font, int ttcIndex, int weight, int isItalic)
static boolean
nAddFontWeightStyle(long builderPtr, ByteBuffer font, int ttcIndex, int weight, int isItalic)
static void
nAllowUnsupportedFont(long builderPtr)
static long
nCreateFamily(long mBuilderPtr)
static long
nGetBuilderReleaseFunc()
static long
nGetFamilyReleaseFunc()
static long
nInitBuilder(String langs, int variant)
-
Method Details
-
nInitBuilder
-
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)
-