[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:
parent
1e7a8f30c2
commit
f61f49fef7
|
@ -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>
|
2019-01-08 Chris Liddell <chris.liddell@artifex.com>
|
||||||
|
|
||||||
[psaux] Fix closepath (#55414).
|
[psaux] Fix closepath (#55414).
|
||||||
|
|
|
@ -608,10 +608,10 @@
|
||||||
|
|
||||||
if ( name->nameID == id && name->stringLength > 0 )
|
if ( name->nameID == id && name->stringLength > 0 )
|
||||||
{
|
{
|
||||||
if ( IS_WIN( name ) )
|
if ( IS_WIN( name ) && ( name->languageID == 0x409 || *win == -1 ) )
|
||||||
*win = n;
|
*win = n;
|
||||||
|
|
||||||
if ( IS_APPLE( name ) )
|
if ( IS_APPLE( name ) && ( name->languageID == 0 || *apple == -1 ) )
|
||||||
*apple = n;
|
*apple = n;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue