code: private static Typeface getFontFromTag(AssetManager assets, View view, boolean strict) {
          final Object tagObject = view.getTag();
          final String tag = tagObject instanceof String ? (String) tagObject : null;
          final Typeface typeface = getFontFromString(assets, tag, strict);
  
          if (!(tagObject instanceof String)) {
              try {
                  final String idName = view.getId() == -1
                          ? "unknown" : view.getResources().getResourceName(view.getId());
                  Log.w(TAG, "Cannot get font from tag '" + tagObject + "' for view id: " + idName);
              } catch (Exception ignored) {
              }
          }
  
          return typeface;
      }
docs: /* Helper methods