102 |
FT_UShort tag; |
FT_UShort tag; |
103 |
FT_Long size; |
FT_Long size; |
104 |
|
|
105 |
|
|
106 |
if ( FT_STREAM_SEEK( 0 ) ) |
if ( FT_STREAM_SEEK( 0 ) ) |
107 |
goto Exit; |
goto Exit; |
108 |
|
|
150 |
parser->in_memory = 0; |
parser->in_memory = 0; |
151 |
parser->single_block = 0; |
parser->single_block = 0; |
152 |
|
|
153 |
/* check the header format */ |
/* check the header format */ |
154 |
error = check_type1_format( stream, "%!PS-AdobeFont-1", 16 ); |
error = check_type1_format( stream, "%!PS-AdobeFont-1", 16 ); |
155 |
if ( error ) |
if ( error ) |
156 |
{ |
{ |
217 |
} |
} |
218 |
else |
else |
219 |
{ |
{ |
220 |
/* read segment in memory - yeah that sucks, but so does the format */ |
/* read segment in memory - this is clumsy, but so does the format */ |
221 |
if ( FT_ALLOC( parser->base_dict, size ) || |
if ( FT_ALLOC( parser->base_dict, size ) || |
222 |
FT_STREAM_READ( parser->base_dict, size ) ) |
FT_STREAM_READ( parser->base_dict, size ) ) |
223 |
goto Exit; |
goto Exit; |
224 |
parser->base_len = size; |
parser->base_len = size; |