MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / SysFont_SetDefault

Function SysFont_SetDefault

src/SystemFonts.c:19–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17static cc_string font_default = String_FromArray(defaultBuffer);
18
19void SysFont_SetDefault(const cc_string* fontName) {
20 String_Copy(&font_default, fontName);
21 Event_RaiseVoid(&ChatEvents.FontChanged);
22}
23
24static void OnInit(void) {
25 Options_Get(OPT_FONT_NAME, &font_default, "");

Callers 1

Calls 2

String_CopyFunction · 0.85
Event_RaiseVoidFunction · 0.85

Tested by

no test coverage detected