[sfnt] Fix postscript name for default instance of variation fonts.

Problem reported by Behdad.

* src/sfnt/sfdriver.c (sfnt_get_ps_name): Test
`is_default_instance'.
This commit is contained in:
Werner Lemberg 2017-09-21 11:42:48 +02:00
parent b19cdc9c81
commit cf64e338dd
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,12 @@
2017-09-21 Werner Lemberg <wl@gnu.org>
[sfnt] Fix postscript name for default instance of variation fonts.
Problem reported by Behdad.
* src/sfnt/sfdriver.c (sfnt_get_ps_name): Test
`is_default_instance'.
2017-09-21 Werner Lemberg <wl@gnu.org>
[truetype] Fix `mmvar' array pointers, part 2.

View File

@ -1029,7 +1029,7 @@
return face->postscript_name;
#ifdef TT_CONFIG_OPTION_GX_VAR_SUPPORT
if ( face->blend )
if ( face->blend && !face->is_default_instance )
{
face->postscript_name = sfnt_get_var_ps_name( face );
return face->postscript_name;