summaryrefslogtreecommitdiff
path: root/src/type42
diff options
context:
space:
mode:
Diffstat (limited to 'src/type42')
-rw-r--r--src/type42/t42objs.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/type42/t42objs.c b/src/type42/t42objs.c
index c0002ae3..9081ffc6 100644
--- a/src/type42/t42objs.c
+++ b/src/type42/t42objs.c
@@ -100,8 +100,8 @@
/* The index is then stored in type1.encoding.char_index, and */
/* the name in type1.encoding.char_name */
- min_char = +32000;
- max_char = -32000;
+ min_char = 0;
+ max_char = 0;
charcode = 0;
for ( ; charcode < loader.encoding_table.max_elems; charcode++ )
@@ -127,13 +127,14 @@
{
if ( charcode < min_char )
min_char = charcode;
- if ( charcode > max_char )
- max_char = charcode;
+ if ( charcode >= max_char )
+ max_char = charcode + 1;
}
break;
}
}
}
+
type1->encoding.code_first = min_char;
type1->encoding.code_last = max_char;
type1->encoding.num_chars = loader.num_chars;