IsFont()

Syntax

Result = IsFont(#Font)
Description
Tests if the given #Font is a valid and correctly initialized font.

Parameters

#Font The font to use.

Return value

Returns nonzero if #Font is a valid font and zero otherwise.

Remarks

This function is bulletproof and can be used with any value. If Result is not zero then the object is valid and initialized, otherwise it returns zero. This is a good way to check that a font is ready to use.

See Also

LoadFont()

Supported OS

All

<- FreeFont() - Font Index - LoadFont() ->