MCPcopy Create free account
hub / github.com/ZDoom/Raze / PickBigFont

Function PickBigFont

source/core/razefont.cpp:188–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186}
187
188FFont* PickBigFont(const char* txt)
189{
190 if (generic_ui) return NewSmallFont; // Note: Support is incomplete. Translations do not exist anyway for most content.
191 if (!OriginalBigFont || OriginalBigFont == BigFont) return BigFont;
192 if (txt && *txt == '$') txt = GStrings.CheckString(txt + 1);
193 if (!txt || !*txt) txt = GStrings.CheckString("REQUIRED_CHARACTERS");
194 if (!txt || !*txt || BigFont->CanPrint(txt)) return BigFont;
195 return OriginalBigFont;
196}
197
198static FFont* PickBigFont_(const FString& str)
199{

Callers 5

drawoverlaysFunction · 0.85
viewDrawScreenFunction · 0.85
PickBigFont_Function · 0.85
drawMapTitleFunction · 0.85

Calls 2

CheckStringMethod · 0.45
CanPrintMethod · 0.45

Tested by

no test coverage detected