[sfnt] Avoid synthetic unicode for symbol fonts with PUA.

Reported as

  https://bugs.chromium.org/p/chromium/issues/detail?id=754574

* src/sfnt/sfobjs.c (sfnt_load_face): Check for FT_ENCODING_MS_SYMBOL.
This commit is contained in:
Alexei Podtelezhnikov 2017-08-17 21:28:32 -04:00
parent cadd29de08
commit 7653c76533
2 changed files with 12 additions and 1 deletions

View File

@ -1,3 +1,13 @@
2017-08-17 Alexei Podtelezhnikov <apodtele@gmail.com>
[sfnt] Avoid synthetic unicode for symbol fonts with PUA.
Reported as
https://bugs.chromium.org/p/chromium/issues/detail?id=754574
* src/sfnt/sfobjs.c (sfnt_load_face): Check for FT_ENCODING_MS_SYMBOL.
2017-08-16 Werner Lemberg <wl@gnu.org>
* src/sfnt/pngshim.c (premultiply_data): Fix compiler warnings.

View File

@ -1492,7 +1492,8 @@
#ifdef FT_CONFIG_OPTION_POSTSCRIPT_NAMES
if ( charmap->encoding == FT_ENCODING_UNICODE )
if ( charmap->encoding == FT_ENCODING_UNICODE ||
charmap->encoding == FT_ENCODING_MS_SYMBOL ) /* PUA */
has_unicode = TRUE;
}