Merge "Add more Paint text APIs parameters checks"