Lines 2272-2278
Link Here
|
2272 |
FT_LOCAL_DEF( FT_Error ) |
2272 |
FT_LOCAL_DEF( FT_Error ) |
2273 |
cff_slot_load( CFF_GlyphSlot glyph, |
2273 |
cff_slot_load( CFF_GlyphSlot glyph, |
2274 |
CFF_Size size, |
2274 |
CFF_Size size, |
2275 |
FT_Int glyph_index, |
2275 |
FT_UInt glyph_index, |
2276 |
FT_Int32 load_flags ) |
2276 |
FT_Int32 load_flags ) |
2277 |
{ |
2277 |
{ |
2278 |
FT_Error error; |
2278 |
FT_Error error; |
Lines 2318-2324
Link Here
|
2318 |
|
2318 |
|
2319 |
error = sfnt->load_sbit_image( face, |
2319 |
error = sfnt->load_sbit_image( face, |
2320 |
size->strike_index, |
2320 |
size->strike_index, |
2321 |
(FT_UInt)glyph_index, |
2321 |
glyph_index, |
2322 |
(FT_Int)load_flags, |
2322 |
(FT_Int)load_flags, |
2323 |
stream, |
2323 |
stream, |
2324 |
&glyph->root.bitmap, |
2324 |
&glyph->root.bitmap, |
Lines 2381-2387
Link Here
|
2381 |
/* subsetted font, glyph_indices and CIDs are identical, though */ |
2381 |
/* subsetted font, glyph_indices and CIDs are identical, though */ |
2382 |
if ( cff->top_font.font_dict.cid_registry != 0xFFFFU && |
2382 |
if ( cff->top_font.font_dict.cid_registry != 0xFFFFU && |
2383 |
cff->charset.cids ) |
2383 |
cff->charset.cids ) |
2384 |
glyph_index = cff->charset.cids[glyph_index]; |
2384 |
{ |
|
|
2385 |
if ( glyph_index < cff->charset.max_cid ) |
2386 |
glyph_index = cff->charset.cids[glyph_index]; |
2387 |
else |
2388 |
glyph_index = 0; |
2389 |
} |
2385 |
|
2390 |
|
2386 |
cff_decoder_init( &decoder, face, size, glyph, hinting, |
2391 |
cff_decoder_init( &decoder, face, size, glyph, hinting, |
2387 |
FT_LOAD_TARGET_MODE( load_flags ) ); |
2392 |
FT_LOAD_TARGET_MODE( load_flags ) ); |