[sfnt] Fix Postscript name service for symbol fonts.

* src/sfnt/sfdriver.c (sfnt_get_ps_name): Accept PID/EID=3/0
entries also.
This commit is contained in:
Werner Lemberg 2017-01-24 20:48:50 +01:00
parent 141f0ea5ab
commit 143971202a
2 changed files with 11 additions and 3 deletions

View File

@ -1,3 +1,10 @@
2017-01-24 Werner Lemberg <wl@gnu.org>
[sfnt] Fix Postscript name service for symbol fonts.
* src/sfnt/sfdriver.c (sfnt_get_ps_name): Accept PID/EID=3/0
entries also.
2017-01-24 Werner Lemberg <wl@gnu.org>
[truetype] For OpenType 1.7: s/preferred/typographic/ (sub)family.

View File

@ -243,9 +243,10 @@
if ( name->nameID == 6 && name->stringLength > 0 )
{
if ( name->platformID == 3 &&
name->encodingID == 1 &&
name->languageID == 0x409 )
/* handling of PID/EID 3/0 and 3/1 is the same */
if ( name->platformID == 3 &&
( name->encodingID == 1 || name->encodingID == 0 ) &&
name->languageID == 0x409 )
found_win = n;
if ( name->platformID == 1 &&