font_delete


描述

With this function you can delete a font asset from the game. This is a permanent removal, and changing rooms, or restarting the game will not bring the removed font back. For that the player would need to exit the game and restart that way, so take care when using this function. In general it is only needed for freeing up memory that has been used by a font added to the game through the functions font_add or font_add_sprite.

重要!该函数在试用版(Trial License)产品中可用。


语法:

font_delete(ind);

参数 描述
ind 待删除的字体索引。


返回:

N/A(无返回值)


例如:

font_delete(global.Font);

上述代码会删除索引为全局变量“Font”的字体。