diff options
author | Tom Kacvinsky <tom.kacvinsky@3ds.com> | 2001-10-20 20:46:36 +0000 |
---|---|---|
committer | Tom Kacvinsky <tom.kacvinsky@3ds.com> | 2001-10-20 20:46:36 +0000 |
commit | d6eb0a267a89f9058c4c0560c5f3e527ce3b5809 (patch) | |
tree | 060956468ddeb5538efd14ca58538596b9b7a7ab | |
parent | 5f5f371b87416493fa540e2ff1e2b7f417e53f5b (diff) | |
download | freetype2-d6eb0a267a89f9058c4c0560c5f3e527ce3b5809.tar.gz |
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.
-rw-r--r-- | src/type1/t1load.c | 5 |
1 files changed, 5 insertions, 0 deletions
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 ) |