forked from minhngoc25a/freetype2
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.
This commit is contained in:
parent
5f5f371b87
commit
d6eb0a267a
|
@ -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 )
|
||||
|
|
Loading…
Reference in New Issue