[WIN32SS][FONT] Add ASSERT_FREETYPE_LOCK_HELD(); in FillTMEx (#1005)

Add a assertion for locking, in FillTMEx function of freetype.c. CORE-15166
This commit is contained in:
Katayama Hirofumi MZ
2018-11-02 18:53:50 +09:00
committed by GitHub
parent 497a9c8087
commit 08cfe38ec6

View File

@@ -1722,6 +1722,8 @@ FillTMEx(TEXTMETRICW *TM, PFONTGDI FontGDI,
int Ascent, Descent;
FT_Face Face = FontGDI->SharedFace->Face;
ASSERT_FREETYPE_LOCK_HELD();
XScale = Face->size->metrics.x_scale;
YScale = Face->size->metrics.y_scale;