Package org.robolectric.shadows
Class ShadowNativeFontFamily
java.lang.Object
org.robolectric.shadows.ShadowNativeFontFamily
@Implements(value=android.graphics.FontFamily.class,
minSdk=26,
isInAndroidSdk=false,
shadowPicker=Picker.class,
callNativeMethodsByDefault=true)
public class ShadowNativeFontFamily
extends Object
Shadow for
FontFamily
that is backed by native code-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static void
FontFamily
invokes its own native methods in its static initializer.protected static void
nAbort
(long mBuilderPtr) protected static void
nAddAxisValue
(long builderPtr, int tag, float value) protected static boolean
nAddFont
(long builderPtr, ByteBuffer font, int ttcIndex, int weight, int isItalic) protected static boolean
nAddFontFromAssetManager
(long builderPtr, AssetManager mgr, String path, int cookie, boolean isAsset, int ttcIndex, int weight, int isItalic) protected static boolean
nAddFontWeightStyle
(long builderPtr, ByteBuffer font, int ttcIndex, int weight, int isItalic) protected static void
nAllowUnsupportedFont
(long builderPtr) protected static long
nCreateFamily
(long mBuilderPtr) protected static long
protected static long
static long
nInitBuilder
(String langs, int variant)
-
Constructor Details
-
ShadowNativeFontFamily
public ShadowNativeFontFamily()
-
-
Method Details
-
__staticInitializer__
FontFamily
invokes its own native methods in its static initializer. This must be deferred starting in Android V. -
nInitBuilder
-
nAllowUnsupportedFont
-
nCreateFamily
-
nGetBuilderReleaseFunc
-
nGetFamilyReleaseFunc
-
nAddFont
@Implementation(minSdk=26, maxSdk=34) protected static boolean nAddFont(long builderPtr, ByteBuffer font, int ttcIndex, int weight, int isItalic) -
nAddFontFromAssetManager
@Implementation(minSdk=26, maxSdk=29) protected static boolean nAddFontFromAssetManager(long builderPtr, AssetManager mgr, String path, int cookie, boolean isAsset, int ttcIndex, int weight, int isItalic) -
nAddFontWeightStyle
@Implementation(minSdk=26, maxSdk=34) protected static boolean nAddFontWeightStyle(long builderPtr, ByteBuffer font, int ttcIndex, int weight, int isItalic) -
nAddAxisValue
@Implementation(minSdk=26, maxSdk=34) protected static void nAddAxisValue(long builderPtr, int tag, float value) -
nAbort
-