Package org.robolectric.nativeruntime
Class FontNatives
java.lang.Object
org.robolectric.nativeruntime.FontNatives
public final class FontNatives extends Object
Native methods for android.graphics.fonts.Font JNI registration.
Native method signatures are derived from https://cs.android.com/android/platform/superproject/+/android-12.0.0_r1:frameworks/base/graphics/java/android/graphics/fonts/Font.java
-
Method Summary
Modifier and Type Method Description static long
nCloneFont(long font)
static long[]
nGetAvailableFontSet()
static int
nGetAxisCount(long fontPtr)
static long
nGetAxisInfo(long fontPtr, int i)
static long
nGetBufferAddress(long font)
static float
nGetFontMetrics(long font, long paint, Paint.FontMetrics metrics)
static String
nGetFontPath(long fontPtr)
static float
nGetGlyphBounds(long font, int glyphId, long paint, RectF rect)
static int
nGetIndex(long fontPtr)
static String
nGetLocaleList(long familyPtr)
static long
nGetMinikinFontPtr(long font)
static int
nGetPackedStyle(long fontPtr)
static long
nGetReleaseNativeFont()
static int
nGetSourceId(long font)
static ByteBuffer
nNewByteBuffer(long font)
-
Method Details
-
nGetMinikinFontPtr
public static long nGetMinikinFontPtr(long font) -
nCloneFont
public static long nCloneFont(long font) -
nNewByteBuffer
-
nGetBufferAddress
public static long nGetBufferAddress(long font) -
nGetSourceId
public static int nGetSourceId(long font) -
nGetReleaseNativeFont
public static long nGetReleaseNativeFont() -
nGetGlyphBounds
-
nGetFontMetrics
-
nGetFontPath
-
nGetLocaleList
-
nGetPackedStyle
public static int nGetPackedStyle(long fontPtr) -
nGetIndex
public static int nGetIndex(long fontPtr) -
nGetAxisCount
public static int nGetAxisCount(long fontPtr) -
nGetAxisInfo
public static long nGetAxisInfo(long fontPtr, int i) -
nGetAvailableFontSet
public static long[] nGetAvailableFontSet()
-