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) public class ShadowNativeFontFamily extends Object
Shadow for
FontFamily that is backed by native code-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classShadowNativeFontFamily.PickerShadow picker forFontFamily. -
Constructor Summary
Constructors Constructor Description ShadowNativeFontFamily() -
Method Summary
Modifier and Type Method Description protected static voidnAddAxisValue(long builderPtr, int tag, float value)protected static booleannAddFont(long builderPtr, ByteBuffer font, int ttcIndex, int weight, int isItalic)protected static booleannAddFontFromAssetManager(long builderPtr, AssetManager mgr, String path, int cookie, boolean isAsset, int ttcIndex, int weight, int isItalic)protected static booleannAddFontWeightStyle(long builderPtr, ByteBuffer font, int ttcIndex, int weight, int isItalic)protected static voidnAllowUnsupportedFont(long builderPtr)protected static longnCreateFamily(long mBuilderPtr)protected static longnGetBuilderReleaseFunc()protected static longnGetFamilyReleaseFunc()static longnInitBuilder(String langs, int variant)
-
Constructor Details
-
ShadowNativeFontFamily
public ShadowNativeFontFamily()
-
-
Method Details
-
nInitBuilder
-
nAllowUnsupportedFont
-
nCreateFamily
-
nGetBuilderReleaseFunc
-
nGetFamilyReleaseFunc
-
nAddFont
@Implementation(minSdk=26) 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) protected static boolean nAddFontWeightStyle(long builderPtr, ByteBuffer font, int ttcIndex, int weight, int isItalic) -
nAddAxisValue
@Implementation(minSdk=26) protected static void nAddAxisValue(long builderPtr, int tag, float value)
-