Package org.robolectric.nativeruntime
Class TypefaceNatives
java.lang.Object
org.robolectric.nativeruntime.TypefaceNatives
Native methods for Typeface 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/Typeface.java
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidnativeAddFontCollections(long nativePtr) static longnativeCreateFromArray(long[] familyArray, long fallbackTypeface, int weight, int italic) static longnativeCreateFromTypeface(long nativeInstance, int style) static longnativeCreateFromTypefaceWithExactStyle(long nativeInstance, int weight, boolean italic) static longnativeCreateFromTypefaceWithVariation(long nativeInstance, List<FontVariationAxis> axes) static longnativeCreateWeightAlias(long nativeInstance, int weight) static voidnativeForceSetStaticFinalField(String fieldName, Typeface typeface) static longnativeGetFamily(long nativePtr, int index) static intnativeGetFamilySize(long naitvePtr) static longstatic intnativeGetStyle(long nativePtr) static int[]nativeGetSupportedAxes(long nativeInstance) static intnativeGetWeight(long nativePtr) static long[]nativeReadTypefaces(ByteBuffer buffer) static voidnativeRegisterGenericFamily(String str, long nativePtr) static voidnativeSetDefault(long nativePtr) static voidnativeWarmUpCache(String fileName) static intnativeWriteTypefaces(ByteBuffer buffer, long[] nativePtrs) 
- 
Method Details- 
nativeCreateFromTypefacepublic static long nativeCreateFromTypeface(long nativeInstance, int style) 
- 
nativeCreateFromTypefaceWithExactStylepublic static long nativeCreateFromTypefaceWithExactStyle(long nativeInstance, int weight, boolean italic) 
- 
nativeCreateFromTypefaceWithVariationpublic static long nativeCreateFromTypefaceWithVariation(long nativeInstance, List<FontVariationAxis> axes) 
- 
nativeCreateWeightAliaspublic static long nativeCreateWeightAlias(long nativeInstance, int weight) 
- 
nativeCreateFromArraypublic static long nativeCreateFromArray(long[] familyArray, long fallbackTypeface, int weight, int italic) 
- 
nativeGetSupportedAxespublic static int[] nativeGetSupportedAxes(long nativeInstance) 
- 
nativeSetDefaultpublic static void nativeSetDefault(long nativePtr) 
- 
nativeGetStylepublic static int nativeGetStyle(long nativePtr) 
- 
nativeGetWeightpublic static int nativeGetWeight(long nativePtr) 
- 
nativeGetReleaseFuncpublic static long nativeGetReleaseFunc()
- 
nativeGetFamilySizepublic static int nativeGetFamilySize(long naitvePtr) 
- 
nativeGetFamilypublic static long nativeGetFamily(long nativePtr, int index) 
- 
nativeRegisterGenericFamily
- 
nativeWriteTypefaces
- 
nativeReadTypefaces
- 
nativeForceSetStaticFinalField
- 
nativeAddFontCollectionspublic static void nativeAddFontCollections(long nativePtr) 
- 
nativeWarmUpCache
 
-