MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / GetName

Method GetName

src/fontcache.cpp:71–79  ·  view source on GitHub ↗

* Get the font name of a given font size. * @param fs The font size to look up. * @return The font name. */

Source from the content-addressed store, hash-verified

69 * @return The font name.
70 */
71std::string FontCache::GetName(FontSize fs)
72{
73 FontCache *fc = FontCache::Get(fs);
74 if (fc != nullptr) {
75 return fc->GetFontName();
76 } else {
77 return "[NULL]";
78 }
79}
80
81
82/**

Callers 15

ParseValueMethod · 0.45
IniLoadSettingsFunction · 0.45
IniSaveSettingsFunction · 0.45
AISaveConfigFunction · 0.45
GameSaveConfigFunction · 0.45
RemoveEntriesFromIniFunction · 0.45
ChangeValueMethod · 0.45
GetSettingFromNameFunction · 0.45
SetSettingValueFunction · 0.45
SyncCompanySettingsFunction · 0.45
IConsoleGetSettingFunction · 0.45

Calls 1

GetFontNameMethod · 0.45

Tested by

no test coverage detected