1687 |
FT_MEM_ZERO( charset->cids, sizeof ( FT_UShort ) * max_cid ); |
FT_MEM_ZERO( charset->cids, sizeof ( FT_UShort ) * max_cid ); |
1688 |
|
|
1689 |
for ( i = 0; i < num_glyphs; i++ ) |
for ( i = 0; i < num_glyphs; i++ ) |
1690 |
charset->cids[charset->sids[i]] = i; |
charset->cids[charset->sids[i]] = (FT_UShort)i; |
1691 |
} |
} |
1692 |
|
|
1693 |
Exit: |
Exit: |
2240 |
/* read the Charset and Encoding tables if available */ |
/* read the Charset and Encoding tables if available */ |
2241 |
if ( font->num_glyphs > 0 ) |
if ( font->num_glyphs > 0 ) |
2242 |
{ |
{ |
2243 |
FT_Bool invert = dict->cid_registry != 0xFFFFU; |
FT_Bool invert = FT_BOOL( dict->cid_registry != 0xFFFFU ); |
2244 |
|
|
2245 |
|
|
2246 |
error = cff_charset_load( &font->charset, font->num_glyphs, stream, |
error = cff_charset_load( &font->charset, font->num_glyphs, stream, |