code: public void setTextSize(int unit, float size) {
          Context c = getContext();
          Resources r;
  
          if (c == null)
              r = Resources.getSystem();
          else
              r = c.getResources();
  
          setRawTextSize(TypedValue.applyDimension(
                  unit, size, r.getDisplayMetrics()));
      }
docs: Set the default text size to a given unit and value.  See {@link
  TypedValue} for the possible dimension units.
  See R.styleable#CircularView_textSize
  
  @param unit The desired dimension unit.
  @param size The desired size in the given units.