Class ShadowNativeFontFamily

    • Constructor Detail

      • ShadowNativeFontFamily

        public ShadowNativeFontFamily()
    • Method Detail

      • nInitBuilder

        @Implementation(minSdk=26)
        public static long nInitBuilder​(String langs,
                                        int variant)
      • nAllowUnsupportedFont

        @Implementation(minSdk=26,
                        maxSdk=27)
        protected static void nAllowUnsupportedFont​(long builderPtr)
      • nCreateFamily

        @Implementation(minSdk=26)
        protected static long nCreateFamily​(long mBuilderPtr)
      • nGetBuilderReleaseFunc

        @Implementation(minSdk=28)
        protected static long nGetBuilderReleaseFunc()
      • nGetFamilyReleaseFunc

        @Implementation(minSdk=28)
        protected static long nGetFamilyReleaseFunc()
      • nAddFont

        @Implementation(minSdk=26)
        protected static boolean nAddFont​(long builderPtr,
                                          ByteBuffer font,
                                          int ttcIndex,
                                          int weight,
                                          int isItalic)
      • nAddFontFromAssetManager

        @Implementation(minSdk=26,
                        maxSdk=29)
        protected static boolean nAddFontFromAssetManager​(long builderPtr,
                                                          AssetManager mgr,
                                                          String path,
                                                          int cookie,
                                                          boolean isAsset,
                                                          int ttcIndex,
                                                          int weight,
                                                          int isItalic)
      • nAddFontWeightStyle

        @Implementation(minSdk=26)
        protected static boolean nAddFontWeightStyle​(long builderPtr,
                                                     ByteBuffer font,
                                                     int ttcIndex,
                                                     int weight,
                                                     int isItalic)
      • nAddAxisValue

        @Implementation(minSdk=26)
        protected static void nAddAxisValue​(long builderPtr,
                                            int tag,
                                            float value)