Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/esengine/esengine
/ clear
Method
clear
packages/fairygui/src/text/DynamicFont.ts:511–516 ·
view source on GitHub ↗
* Clear all fonts * 清除所有字体
()
Source
from the content-addressed store, hash-verified
509
* 清除所有字体
510
*/
511
public clear(): void {
512
for
(
const
font of this._fonts.values()) {
513
font.dispose();
514
}
515
this._fonts.clear();
516
}
517
}
518
519
/** Global dynamic font manager | 全局动态字体管理器 */
Callers
nothing calls this directly
Calls
3
dispose
Method · 0.65
clear
Method · 0.65
values
Method · 0.45
Tested by
no test coverage detected