MCPcopy Create free account
hub / github.com/diasurgical/DevilutionX / load

Method load

Source/engine/render/text_render.cpp:242–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240 }
241
242 bool load(GameFontTables size, text_color color, char32_t next)
243 {
244 const uint32_t unicodeRow = GetUnicodeRow(next);
245 if (unicodeRow == currentUnicodeRow_ && hasAttemptedLoad_) {
246 return true;
247 }
248
249 fontStack = LoadFont(size, color, unicodeRow);
250 hasAttemptedLoad_ = true;
251 currentUnicodeRow_ = unicodeRow;
252
253 return fontStack.has_value();
254 }
255
256 void clear()
257 {

Callers 4

DoDrawStringFunction · 0.80
GetLineWidthFunction · 0.80
WordWrapStringFunction · 0.80
DrawStringWithColorsFunction · 0.80

Calls 3

GetUnicodeRowFunction · 0.85
LoadFontFunction · 0.85
has_valueMethod · 0.45

Tested by

no test coverage detected