Creating or destroying a font

// Access the cluster's resource manager:
RED::Object* resmgr = RED::Factory::CreateInstance( CID_REDResourceManager );
RED::IResourceManager* iresmgr = resmgr->As< RED::IResourceManager >();
const RED::State& state = iresmgr->BeginState();

// Create a font:
RED::Object* font;
RC_TEST( iresmgr->CreateFont( font, state ) );

// Delete the font after use:
RC_TEST( iresmgr->DeleteFont( font, state ) );

The font destruction is a transaction managed operation that can occur from the application's writer thread. It's the responsibility of the calling application to ensure that the font is not used anymore in REDsdk prior to its destruction.