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 classShadowNativeFont.PickerShadow picker forFont.static classShadowNativeFont.ShadowNativeFontBuilderShadow forFont.Builderthat is backed by native code -
Constructor Summary
Constructors Constructor Description ShadowNativeFont() -
Method Summary
Modifier and Type Method Description protected static longnCloneFont(long font)protected static long[]nGetAvailableFontSet()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 longnGetReleaseNativeFont()protected 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) 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
-