Sets the text placement gravity to use when annotating with text.