Frees all the resources allocated by this object.
public void dispose()
The dispose method frees only those resources allocated by the object. Such resources do not include handle copies that you retrieve using the object's copyHandle method; you must free these manually.
Once the dispose method is called, the Font object cannot be used.