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,
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 void
Font
invokes its own native methods in its static initializer.protected 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
-
__staticInitializer__
Font
invokes its own native methods in its static initializer. This must be deferred starting in Android V. -
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
-