ref: cf64e338dd798039b1ed00554044ea2207d766f2
parent: b19cdc9c8164cd81801024b024ce132bcb4a29f1
author: Werner Lemberg <[email protected]>
date: Thu Sep 21 07:42:48 EDT 2017
[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'.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
2017-09-21 Werner Lemberg <[email protected]>
+ [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 <[email protected]>
+
[truetype] Fix `mmvar' array pointers, part 2.
The previous commit was incomplete.
--- a/src/sfnt/sfdriver.c
+++ b/src/sfnt/sfdriver.c
@@ -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;