| 186 | } |
| 187 | |
| 188 | FFont* 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 | |
| 198 | static FFont* PickBigFont_(const FString& str) |
| 199 | { |
no test coverage detected