improve draw text api