Class ShadowFontBuilder

    • Constructor Detail

      • ShadowFontBuilder

        public ShadowFontBuilder()
    • Method Detail

      • reset

        @Resetter
        public static void reset()
      • nGetNativeAsset

        @Implementation(maxSdk=29)
        protected static long nGetNativeAsset​(AssetManager assetMgr,
                                              String path,
                                              boolean isAsset,
                                              int cookie)
      • nGetAssetBuffer

        @Implementation(maxSdk=29)
        protected static ByteBuffer nGetAssetBuffer​(long nativeAsset)
      • nGetReleaseNativeAssetFunc

        @Implementation(maxSdk=29)
        protected static long nGetReleaseNativeAssetFunc()
      • createBuffer

        @Implementation(minSdk=30)
        protected static ByteBuffer createBuffer​(AssetManager am,
                                                 String path,
                                                 boolean isAsset,
                                                 int cookie)
                                          throws IOException
        Re-implement to avoid call to DirectByteBuffer#array, which is not supported on JDK
        Throws:
        IOException
      • nBuild

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