Package org.robolectric.shadows
Class ShadowNativeFont
- java.lang.Object
-
- org.robolectric.shadows.ShadowNativeFont
-
@Implements(value=android.graphics.fonts.Font.class, minSdk=28, shadowPicker=Picker.class, isInAndroidSdk=false) public class ShadowNativeFont extends Object
Shadow forFontthat is backed by native code
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classShadowNativeFont.PickerShadow picker forFont.static classShadowNativeFont.ShadowNativeFontBuilderShadow forFont.Builderthat is backed by native code
-
Constructor Summary
Constructors Constructor Description ShadowNativeFont()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static longnCloneFont(long font)protected static long[]nGetAvailableFontSet()protected static intnGetAxisCount(long fontPtr)protected static longnGetAxisInfo(long fontPtr, int i)protected static longnGetBufferAddress(long font)protected static floatnGetFontMetrics(long font, long paint, Paint.FontMetrics metrics)protected static StringnGetFontPath(long fontPtr)protected static floatnGetGlyphBounds(long font, int glyphId, long paint, RectF rect)protected static intnGetIndex(long fontPtr)protected static StringnGetLocaleList(long familyPtr)protected static longnGetMinikinFontPtr(long font)protected static intnGetPackedStyle(long fontPtr)protected static longnGetReleaseNativeFont()protected static intnGetSourceId(long font)protected static ByteBuffernNewByteBuffer(long font)
-
-
-
Method Detail
-
nGetMinikinFontPtr
@Implementation(minSdk=31) protected static long nGetMinikinFontPtr(long font)
-
nCloneFont
@Implementation(minSdk=31) protected static long nCloneFont(long font)
-
nNewByteBuffer
@Implementation(minSdk=31) protected static ByteBuffer nNewByteBuffer(long font)
-
nGetBufferAddress
@Implementation(minSdk=31) protected static long nGetBufferAddress(long font)
-
nGetSourceId
@Implementation(minSdk=31) protected static int nGetSourceId(long font)
-
nGetReleaseNativeFont
@Implementation(minSdk=31) protected static long nGetReleaseNativeFont()
-
nGetGlyphBounds
@Implementation(minSdk=31) protected static float nGetGlyphBounds(long font, int glyphId, long paint, RectF rect)
-
nGetFontMetrics
@Implementation(minSdk=31) protected static float nGetFontMetrics(long font, long paint, Paint.FontMetrics metrics)
-
nGetFontPath
@Implementation(minSdk=31) protected static String nGetFontPath(long fontPtr)
-
nGetLocaleList
@Implementation(minSdk=31) protected static String nGetLocaleList(long familyPtr)
-
nGetPackedStyle
@Implementation(minSdk=31) protected static int nGetPackedStyle(long fontPtr)
-
nGetIndex
@Implementation(minSdk=31) protected static int nGetIndex(long fontPtr)
-
nGetAxisCount
@Implementation(minSdk=31) protected static int nGetAxisCount(long fontPtr)
-
nGetAxisInfo
@Implementation(minSdk=31) protected static long nGetAxisInfo(long fontPtr, int i)
-
nGetAvailableFontSet
@Implementation(minSdk=31) protected static long[] nGetAvailableFontSet()
-
-