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

Function GetFontCacheSubSetting

src/fontcache.h:196–205  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

194 * @return The settings.
195 */
196inline FontCacheSubSetting *GetFontCacheSubSetting(FontSize fs)
197{
198 switch (fs) {
199 default: NOT_REACHED();
200 case FS_SMALL: return &_fcsettings.small;
201 case FS_NORMAL: return &_fcsettings.medium;
202 case FS_LARGE: return &_fcsettings.large;
203 case FS_MONO: return &_fcsettings.mono;
204 }
205}
206
207uint GetFontCacheFontSize(FontSize fs);
208std::string GetFontCacheFontName(FontSize fs);

Callers 7

SetFontFunction · 0.85
GetFontCacheFontSizeFunction · 0.85
GetFontCacheFontNameFunction · 0.85
ConFontFunction · 0.85
LoadFontMethod · 0.85
LoadFontMethod · 0.85
LoadFontMethod · 0.85

Calls 1

NOT_REACHEDFunction · 0.85

Tested by

no test coverage detected