Fix some testcase fails for 14c265a1
Add an extra code to ignore an error of FT_Get_MM_Var() only when FT_MM_Var variable isn't used in any case.
This commit is contained in:
parent
14c265a10a
commit
5841bd012d
|
@ -1232,6 +1232,7 @@ FcFreeTypeQueryFaceInternal (const FT_Face face,
|
||||||
int st;
|
int st;
|
||||||
|
|
||||||
FcBool symbol = FcFalse;
|
FcBool symbol = FcFalse;
|
||||||
|
FT_Error ftresult;
|
||||||
|
|
||||||
FcInitDebug (); /* We might be called with no initizalization whatsoever. */
|
FcInitDebug (); /* We might be called with no initizalization whatsoever. */
|
||||||
|
|
||||||
|
@ -1257,11 +1258,13 @@ FcFreeTypeQueryFaceInternal (const FT_Face face,
|
||||||
goto bail1;
|
goto bail1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (FT_Get_MM_Var (face, &master))
|
ftresult = FT_Get_MM_Var (face, &master);
|
||||||
goto bail1;
|
|
||||||
|
|
||||||
if (id >> 16)
|
if (id >> 16)
|
||||||
{
|
{
|
||||||
|
if (ftresult)
|
||||||
|
goto bail1;
|
||||||
|
|
||||||
if (id >> 16 == 0x8000)
|
if (id >> 16 == 0x8000)
|
||||||
{
|
{
|
||||||
/* Query variable font itself. */
|
/* Query variable font itself. */
|
||||||
|
@ -1352,6 +1355,8 @@ FcFreeTypeQueryFaceInternal (const FT_Face face,
|
||||||
goto bail1;
|
goto bail1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
if (!ftresult)
|
||||||
{
|
{
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
for (i = 0; i < master->num_axis; i++)
|
for (i = 0; i < master->num_axis; i++)
|
||||||
|
@ -1364,7 +1369,11 @@ FcFreeTypeQueryFaceInternal (const FT_Face face,
|
||||||
variable_size = FcTrue;
|
variable_size = FcTrue;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
/* ignore an error of FT_Get_MM_Var() */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!FcPatternObjectAddBool (pat, FC_VARIABLE_OBJECT, variable))
|
if (!FcPatternObjectAddBool (pat, FC_VARIABLE_OBJECT, variable))
|
||||||
|
|
Loading…
Reference in New Issue