Using the TextFormat object

The TextFormat object lets you create text styles and then apply those styles to a TextField object.