[sfnt] Handle TT fonts having two PostScript font names (#55471).

* src/sfnt/sfdriver.c (sfnt_get_name_id): Prefer English over any
other language found for PostScript font names.
This commit is contained in:
John Tytgat 2019-01-18 13:25:23 +01:00 committed by Werner Lemberg
parent 1e7a8f30c2
commit f61f49fef7
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2019-01-18 John Tytgat <John.Tytgat@esko.com>
[sfnt] Handle TT fonts having two PostScript font names (#55471).
* src/sfnt/sfdriver.c (sfnt_get_name_id): Prefer English over any
other language found for PostScript font names.
2019-01-08 Chris Liddell <chris.liddell@artifex.com>
[psaux] Fix closepath (#55414).

View File

@ -608,10 +608,10 @@
if ( name->nameID == id && name->stringLength > 0 )
{
if ( IS_WIN( name ) )
if ( IS_WIN( name ) && ( name->languageID == 0x409 || *win == -1 ) )
*win = n;
if ( IS_APPLE( name ) )
if ( IS_APPLE( name ) && ( name->languageID == 0 || *apple == -1 ) )
*apple = n;
}
}