code: @Override
      public boolean init(@NonNull Context context, int fontsRes) {
          FontListParser.Config config = readFontConfig(context, fontsRes);
          if (config == null) return false;
  
          // this will also rewrite the Font#fontName to point to the extracted file(s)
          extractToCache(context.getAssets(), context.getCodeCacheDir(), config);
  
          if (BuildConfig.DEBUG) {
              Log.v(TAG, "Loading font configuration: " + config);
              Log.v(TAG, "Aliases=" + config.aliases);
              Log.v(TAG, "Families=" + config.families);
          }
  
          init(config);
          return true;
      }
docs: https://github.com/android/platform_frameworks_base/blob/android-5.0.0_r1/graphics/java/android/graphics/Typeface.java