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

@@ -168,7 +168,6 @@ void Win32FontCache::SetFontSize(int pixels)
POUTLINETEXTMETRIC otm = (POUTLINETEXTMETRIC)new BYTE[otmSize];
GetOutlineTextMetrics(this->dc, otmSize, otm);
this->units_per_em = otm->otmEMSquare;
this->ascender = otm->otmTextMetrics.tmAscent;
this->descender = otm->otmTextMetrics.tmDescent;
this->height = this->ascender + this->descender;