1
0
Fork 0

Codechange: Add doxygen comment for SetFont() in fontcache.cpp

pull/12690/head
Sadie del Solar 2024-07-01 17:20:06 -07:00
parent bb61886487
commit c21b8344e0
1 changed files with 6 additions and 0 deletions

View File

@ -171,6 +171,12 @@ void ResizeFont(FontSize font_size, uint size)
if (_save_config) SaveToConfig();
}
/**
* Called to change a font or font size used by OpenTTD.
* @param font_size The FontSize(enum not pixel size) of the font to change.
* @param font The font name to use for this font.
* @param size The size(pixel size) to use for this font.
*/
void SetFont(FontSize font_size, const std::string &font, uint size)
{
FontCacheSubSetting *setting = GetFontCacheSubSetting(font_size);