Expose attributed string attributes function. Remove hit test because it's slow and unnecessary.