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

Function GetFont

LibLemon/src/gfx/font.cpp:101–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99 }
100
101 Font* GetFont(const char* id){
102 Font* font;
103 try{
104 font = fonts.at(id);
105 } catch (const std::out_of_range& e){
106 fprintf(stderr, "Warning: font %s could not be found!", id);
107 font = mainFont;
108 }
109 return font;
110 }
111};

Callers 4

mainFunction · 0.85
TextBoxMethod · 0.85
ListViewMethod · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected