Class ShadowNativeFont.ShadowNativeFontBuilder

    • Constructor Detail

      • ShadowNativeFontBuilder

        public ShadowNativeFontBuilder()
    • Method Detail

      • __constructor__

        @Implementation(minSdk=29,
                        maxSdk=29)
        protected void __constructor__​(AssetManager am,
                                       String path,
                                       boolean isAsset,
                                       int cookie)
      • __constructor__

        @Implementation(minSdk=29,
                        maxSdk=29)
        protected void __constructor__​(Resources res,
                                       int resId)
      • nInitBuilder

        @Implementation(minSdk=29)
        protected static long nInitBuilder()
      • nAddAxis

        @Implementation(minSdk=29)
        protected static void nAddAxis​(long builderPtr,
                                       int tag,
                                       float value)
      • nBuild

        @Implementation(minSdk=31)
        protected static long nBuild​(long builderPtr,
                                     ByteBuffer buffer,
                                     String filePath,
                                     String localeList,
                                     int weight,
                                     boolean italic,
                                     int ttcIndex)
      • nBuild

        @Implementation(minSdk=29,
                        maxSdk=30)
        protected static long nBuild​(long builderPtr,
                                     ByteBuffer buffer,
                                     String filePath,
                                     int weight,
                                     boolean italic,
                                     int ttcIndex)
      • nGetReleaseNativeFont

        @Implementation(minSdk=29,
                        maxSdk=33)
        protected static long nGetReleaseNativeFont()
      • nClone

        @Implementation(minSdk=31)
        protected static long nClone​(long fontPtr,
                                     long builderPtr,
                                     int weight,
                                     boolean italic,
                                     int ttcIndex)
      • createBuffer

        @Implementation(minSdk=30)
        protected static ByteBuffer createBuffer​(AssetManager am,
                                                 String path,
                                                 boolean isAsset,
                                                 int cookie)
                                          throws IOException
        The Android implementation attempts to call ByteBuffer.array() on a direct byte buffer. This is supported in Libcore but not the JVM. Use an implementation that copies the data from the asset into a direct buffer.
        Throws:
        IOException