Package org.robolectric.shadows
Class ShadowNativeFont
java.lang.Object
org.robolectric.shadows.ShadowNativeFont
@Implements(value=android.graphics.fonts.Font.class,
minSdk=29,
shadowPicker=Picker.class,
isInAndroidSdk=false,
callNativeMethodsByDefault=true)
public class ShadowNativeFont
extends Object
Shadow for
Font that is backed by native code-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classShadow picker forFont.static classShadow forFont.Builderthat is backed by native code -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static longnCloneFont(long font) protected static long[]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 longprotected static intnGetSourceId(long font) protected static ByteBuffernNewByteBuffer(long font)
-
Constructor Details
-
ShadowNativeFont
public ShadowNativeFont()
-
-
Method Details
-
nGetMinikinFontPtr
-
nCloneFont
-
nNewByteBuffer
-
nGetBufferAddress
-
nGetSourceId
-
nGetReleaseNativeFont
-
nGetGlyphBounds
@Implementation(minSdk=31, maxSdk=34) protected static float nGetGlyphBounds(long font, int glyphId, long paint, RectF rect) -
nGetFontMetrics
@Implementation(minSdk=31, maxSdk=34) protected static float nGetFontMetrics(long font, long paint, Paint.FontMetrics metrics) -
nGetFontPath
-
nGetLocaleList
-
nGetPackedStyle
-
nGetIndex
-
nGetAxisCount
-
nGetAxisInfo
-
nGetAvailableFontSet
-