mirror of
https://github.com/reactos/reactos.git
synced 2024-06-29 01:12:06 +00:00
[FONT][WIN32SS] Hold the freetype lock while accessing freetype data
This commit is contained in:
parent
436d8d962a
commit
1d1b7f46fc
|
@ -4865,6 +4865,9 @@ IntFontType(PFONTGDI Font)
|
||||||
FT_ULong tmp_size = 0;
|
FT_ULong tmp_size = 0;
|
||||||
FT_Face Face = Font->SharedFace->Face;
|
FT_Face Face = Font->SharedFace->Face;
|
||||||
|
|
||||||
|
ASSERT_FREETYPE_LOCK_NOT_HELD();
|
||||||
|
IntLockFreeType();
|
||||||
|
|
||||||
if (FT_HAS_MULTIPLE_MASTERS(Face))
|
if (FT_HAS_MULTIPLE_MASTERS(Face))
|
||||||
Font->FontObj.flFontType |= FO_MULTIPLEMASTER;
|
Font->FontObj.flFontType |= FO_MULTIPLEMASTER;
|
||||||
if (FT_HAS_VERTICAL(Face))
|
if (FT_HAS_VERTICAL(Face))
|
||||||
|
@ -4886,6 +4889,8 @@ IntFontType(PFONTGDI Font)
|
||||||
{
|
{
|
||||||
Font->FontObj.flFontType |= (FO_CFF|FO_POSTSCRIPT);
|
Font->FontObj.flFontType |= (FO_CFF|FO_POSTSCRIPT);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
IntUnLockFreeType();
|
||||||
}
|
}
|
||||||
|
|
||||||
static BOOL
|
static BOOL
|
||||||
|
|
Loading…
Reference in a new issue