This commit is contained in:
Peter Nelson 2024-04-24 03:06:12 -04:00 committed by GitHub
commit f16ec252e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -183,8 +183,8 @@ void Win32FontCache::SetFontSize(int pixels)
GetOutlineTextMetrics(this->dc, otmSize, otm);
this->units_per_em = otm->otmEMSquare;
this->ascender = otm->otmTextMetrics.tmAscent;
this->descender = otm->otmTextMetrics.tmDescent;
this->ascender = otm->otmAscent;
this->descender = -otm->otmDescent;
this->height = this->ascender + this->descender;
this->glyph_size.cx = otm->otmTextMetrics.tmMaxCharWidth;
this->glyph_size.cy = otm->otmTextMetrics.tmHeight;