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 for
Font
that is backed by native code-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ShadowNativeFont.Picker
Shadow picker forFont
.static class
ShadowNativeFont.ShadowNativeFontBuilder
Shadow forFont.Builder
that is backed by native code -
Constructor Summary
Constructors Constructor Description ShadowNativeFont()
-
Method Summary
Modifier and Type Method Description protected static long
nCloneFont(long font)
protected static long[]
nGetAvailableFontSet()
protected static int
nGetAxisCount(long fontPtr)
protected static long
nGetAxisInfo(long fontPtr, int i)
protected static long
nGetBufferAddress(long font)
protected static float
nGetFontMetrics(long font, long paint, Paint.FontMetrics metrics)
protected static String
nGetFontPath(long fontPtr)
protected static float
nGetGlyphBounds(long font, int glyphId, long paint, RectF rect)
protected static int
nGetIndex(long fontPtr)
protected static String
nGetLocaleList(long familyPtr)
protected static long
nGetMinikinFontPtr(long font)
protected static int
nGetPackedStyle(long fontPtr)
protected static long
nGetReleaseNativeFont()
protected static int
nGetSourceId(long font)
protected static ByteBuffer
nNewByteBuffer(long font)
-
Constructor Details
-
ShadowNativeFont
public ShadowNativeFont()
-
-
Method Details
-
nGetMinikinFontPtr
-
nCloneFont
-
nNewByteBuffer
-
nGetBufferAddress
-
nGetSourceId
-
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
-
nGetLocaleList
-
nGetPackedStyle
-
nGetIndex
-
nGetAxisCount
-
nGetAxisInfo
-
nGetAvailableFontSet
-