[base] Fix error handing in MM functions.

* src/base/ftmm.c (FT_Set_Var_Design_Coordinates,
FT_Set_MM_Blend_Coordinates, FT_Set_Var_Blend_Coordinates):
Implement it.
This commit is contained in:
Werner Lemberg 2017-01-31 18:47:10 +01:00
parent e80e4d811a
commit 1e55060109
2 changed files with 17 additions and 3 deletions

View File

@ -1,3 +1,11 @@
2017-01-31 Werner Lemberg <wl@gnu.org>
[base] Fix error handing in MM functions.
* src/base/ftmm.c (FT_Set_Var_Design_Coordinates,
FT_Set_MM_Blend_Coordinates, FT_Set_Var_Blend_Coordinates):
Implement it.
2017-01-31 Werner Lemberg <wl@gnu.org>
[truetype] Fix sanity check for `gvar' table (#50184).

View File

@ -205,7 +205,9 @@
error = service_mm->set_var_design( face, num_coords, coords );
}
error = ft_face_get_mvar_service( face, &service_mvar );
if ( !error )
error = ft_face_get_mvar_service( face, &service_mvar );
if ( !error )
{
if ( service_mvar->metrics_adjust )
@ -276,7 +278,9 @@
error = service_mm->set_mm_blend( face, num_coords, coords );
}
error = ft_face_get_mvar_service( face, &service_mvar );
if ( !error )
error = ft_face_get_mvar_service( face, &service_mvar );
if ( !error )
{
if ( service_mvar->metrics_adjust )
@ -322,7 +326,9 @@
error = service_mm->set_mm_blend( face, num_coords, coords );
}
error = ft_face_get_mvar_service( face, &service_mvar );
if ( !error )
error = ft_face_get_mvar_service( face, &service_mvar );
if ( !error )
{
if ( service_mvar->metrics_adjust )