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

Function IsDefaultFont

src/fontcache.cpp:157–160  ·  view source on GitHub ↗

* Test if a font setting uses the default font. * @return true iff the font is not configured and no fallback font data is present. */

Source from the content-addressed store, hash-verified

155 * @return true iff the font is not configured and no fallback font data is present.
156 */
157static bool IsDefaultFont(const FontCacheSubSetting &setting)
158{
159 return setting.font.empty() && setting.os_handle == nullptr;
160}
161
162/**
163 * Get the scalable font size to use for a FontSize.

Callers 1

GetFontCacheFontSizeFunction · 0.85

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected