Add support for form text annotations.

This depends on #2988.