code: @SuppressLint("InlinedApi")
      private static Object[] parseFontStyle(Context context, AttributeSet attrs, int defStyleAttr) {
          final TypedArray a = context.obtainStyledAttributes(attrs,
                  R.styleable.TextAppearance, defStyleAttr, 0);
          final Object[] result = parseFontStyle(a);
          a.recycle();
          return result;
      }
docs: Looks ugly? Yea, i know.