Fix a typo on masking face id
Most of functionality should be moved to FcFreeTypeQueryAll() for varfonts now though, if doing the same to FcFreeTypeQuery() returns Null pattern because of inappropriate masking. This might be not that big deal for varfonts support. but Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/162 Reported by Kevin Scott
This commit is contained in:
parent
a919700fbd
commit
c0dc76268b
|
@ -2135,7 +2135,7 @@ FcFreeTypeQuery(const FcChar8 *file,
|
||||||
if (FT_Init_FreeType (&ftLibrary))
|
if (FT_Init_FreeType (&ftLibrary))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
if (FT_New_Face (ftLibrary, (char *) file, id & 0x7FFFFFFFF, &face))
|
if (FT_New_Face (ftLibrary, (char *) file, id & 0x7FFFFFFF, &face))
|
||||||
goto bail;
|
goto bail;
|
||||||
|
|
||||||
if (count)
|
if (count)
|
||||||
|
|
Loading…
Reference in New Issue