MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / RefreshFonts

Function RefreshFonts

LibLemon/src/gfx/font.cpp:24–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22 static std::map<std::string, Font*> fonts = {{"default", mainFont}}; // Clang appears to call InitializeFonts before the constructor for the map
23
24 void RefreshFonts(){
25 if(library) FT_Done_FreeType(library);
26 fontState = 0;
27 }
28
29 __attribute__((constructor))
30 void InitializeFonts(){

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected