From 629bf286e76cd11f5dc25f3e888c2267592541c8 Mon Sep 17 00:00:00 2001 From: Tom Kacvinsky Date: Sat, 20 Oct 2001 20:46:36 +0000 Subject: [PATCH] In function parse_encoding, add a test to make sure that custom encodings (i.e., neither StandardEncoding nor ExpertEncoding) are not loaded twice when the Type 1 font is synthetic. --- src/type1/t1load.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/type1/t1load.c b/src/type1/t1load.c index 719667982..ab9a00fbe 100644 --- a/src/type1/t1load.c +++ b/src/type1/t1load.c @@ -960,6 +960,11 @@ FT_Error error; + if ( encode->char_index ) + /* with synthetic fonts, it's possible we get here twice */ + return; + + /* read the number of entries in the encoding, should be 256 */ count = T1_ToInt( parser ); if ( parser->root.error )