Package org.robolectric.nativeruntime
Class FontFamilyNatives
java.lang.Object
org.robolectric.nativeruntime.FontFamilyNatives
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 TypeMethodDescriptionstatic voidnAddAxisValue(long builderPtr, int tag, float value) static booleannAddFont(long builderPtr, ByteBuffer font, int ttcIndex, int weight, int isItalic) static booleannAddFontWeightStyle(long builderPtr, ByteBuffer font, int ttcIndex, int weight, int isItalic) static voidnAllowUnsupportedFont(long builderPtr) static longnCreateFamily(long mBuilderPtr) static longstatic longstatic longnInitBuilder(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)
-