Method XbpFont():destroy() Foundation

Unloads the font and releases the memory used by the font.

Syntax
:destroy() --> self
Return

This method returns the object executing the method (self).

Description

The :destroy() method removes a loaded font from memory. It is the counterpart of the :create() method and is analogous to closing a file. This method can be executed to explicitly release system resources.

The method :destroy() is not generally required for Xbase Parts. However, it should always be executed for an XbpFont object as soon as the font is no longer needed. This is because loaded fonts take a considerable amount of memory.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.