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

Method ClearFontCache

src/fontcache/spritefontcache.cpp:123–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121}
122
123void SpriteFontCache::ClearFontCache()
124{
125 Layouter::ResetFontCache(this->fs);
126 this->height = ScaleGUITrad(FontCache::GetDefaultFontHeight(this->fs));
127 this->ascender = (this->height - ScaleFontTrad(FontCache::GetDefaultFontHeight(this->fs))) / 2;
128}
129
130const Sprite *SpriteFontCache::GetGlyph(GlyphID key)
131{

Callers

nothing calls this directly

Calls 2

ScaleFontTradFunction · 0.85
ScaleGUITradFunction · 0.50

Tested by

no test coverage detected