mirror of
https://github.com/freetype/freetype.git
synced 2026-01-18 00:11:18 +01:00
[base] Fix return values of two Font Variation functions.
* src/base/ftmm.c (FT_Set_Var_Design_Coordinates, FT_Set_Var_Blend_Coordinates): Do it. Fixes issue #1355.
This commit is contained in:
committed by
Werner Lemberg
parent
53b9319bff
commit
566f8805f3
@@ -307,13 +307,16 @@
|
||||
FT_Bool is_variation_old = FT_IS_VARIATION( face );
|
||||
|
||||
|
||||
if ( error != -1 )
|
||||
{
|
||||
if ( error == -2 ) /* -2 means is_variable. */
|
||||
face->face_flags |= FT_FACE_FLAG_VARIATION;
|
||||
else
|
||||
face->face_flags &= ~FT_FACE_FLAG_VARIATION;
|
||||
}
|
||||
if ( error != -1 )
|
||||
{
|
||||
if ( error == -2 ) /* -2 means is_variable. */
|
||||
{
|
||||
face->face_flags |= FT_FACE_FLAG_VARIATION;
|
||||
error = FT_Err_Ok;
|
||||
}
|
||||
else
|
||||
face->face_flags &= ~FT_FACE_FLAG_VARIATION;
|
||||
}
|
||||
|
||||
if ( service_mm->construct_ps_name )
|
||||
{
|
||||
@@ -485,13 +488,16 @@
|
||||
FT_Bool is_variation_old = FT_IS_VARIATION( face );
|
||||
|
||||
|
||||
if ( error != -1 )
|
||||
{
|
||||
if ( error == -2 ) /* -2 means is_variable. */
|
||||
face->face_flags |= FT_FACE_FLAG_VARIATION;
|
||||
else
|
||||
face->face_flags &= ~FT_FACE_FLAG_VARIATION;
|
||||
}
|
||||
if ( error != -1 )
|
||||
{
|
||||
if ( error == -2 ) /* -2 means is_variable. */
|
||||
{
|
||||
face->face_flags |= FT_FACE_FLAG_VARIATION;
|
||||
error = FT_Err_Ok;
|
||||
}
|
||||
else
|
||||
face->face_flags &= ~FT_FACE_FLAG_VARIATION;
|
||||
}
|
||||
|
||||
if ( service_mm->construct_ps_name )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user