1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-15 16:32:41 +01:00

Cleanup: Remove GetUnitsPerEM and units_per_em. (#12656)

GetUnitsPerEM is never called.
This commit is contained in:
Peter Nelson
2024-05-11 14:50:34 +01:00
committed by GitHub
parent 721cd2b8ad
commit d78f39a9df
5 changed files with 1 additions and 12 deletions

View File

@@ -33,8 +33,7 @@ FontCacheSettings _fcsettings;
* @param fs The size of the font.
*/
FontCache::FontCache(FontSize fs) : parent(FontCache::Get(fs)), fs(fs), height(_default_font_height[fs]),
ascender(_default_font_ascender[fs]), descender(_default_font_ascender[fs] - _default_font_height[fs]),
units_per_em(1)
ascender(_default_font_ascender[fs]), descender(_default_font_ascender[fs] - _default_font_height[fs])
{
assert(this->parent == nullptr || this->fs == this->parent->fs);
FontCache::caches[this->fs] = this;