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
Modifier and TypeClassDescriptionstatic final class
Shadow picker forFont
.static class
Shadow forFont.Builder
that is backed by native code -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static long
nCloneFont
(long font) protected static long[]
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
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, 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
-