API change fonts

What is the API that allows changing a font inside a text field previously created with another font?