* src/type1/t1load.c (parse_charstrings): Catch this non-standard

beginning of the /CharStrings dictionary:

  /CharStrings 118 dict def
  Private begin
  CharStrings begin
This commit is contained in:
Werner Lemberg 2005-04-14 11:43:40 +00:00
Родитель 1ea53e87c8
Коммит e7602c4b4a
2 изменённых файлов: 23 добавлений и 1 удалений

Просмотреть файл

@ -1,3 +1,12 @@
2005-04-14 Werner Lemberg <wl@gnu.org>
* src/type1/t1load.c (parse_charstrings): Catch this non-standard
beginning of the /CharStrings dictionary:
/CharStrings 118 dict def
Private begin
CharStrings begin
2005-04-13 Werner Lemberg <wl@gnu.org>
* docs/TODO: Updated.

Просмотреть файл

@ -1448,7 +1448,20 @@
if ( cur[0] == 'd' &&
cur[1] == 'e' &&
cur[2] == 'f' )
break;
{
/* There are fonts which have this: */
/* */
/* /CharStrings 118 dict def */
/* Private begin */
/* CharStrings begin */
/* ... */
/* */
/* To catch this we ignore `def' if */
/* no charstring has actually been */
/* seen. */
if ( n )
break;
}
if ( cur[0] == 'e' &&
cur[1] == 'n' &&