Go to the source code of this file.
|
FT_BEGIN_HEADER | cff_decoder_init (CFF_Decoder *decoder, TT_Face face, CFF_Size size, CFF_GlyphSlot slot, FT_Bool hinting, FT_Render_Mode hint_mode, CFF_Decoder_Get_Glyph_Callback get_callback, CFF_Decoder_Free_Glyph_Callback free_callback) |
|
| cff_decoder_prepare (CFF_Decoder *decoder, CFF_Size size, FT_UInt glyph_index) |
|
| cff_lookup_glyph_by_stdcharcode (CFF_Font cff, FT_Int charcode) |
|
◆ cff_decoder_init()
Definition at line 2327 of file cffdecode.c.
2335 {
2337
2338
2339
2341
2342
2344
2345
2352
2353 decoder->hint_mode = hint_mode;
2354
2356 decoder->free_glyph_callback = free_callback;
2357 }
static HRESULT get_callback(IBindCtx *pbc, IBindStatusCallback **callback)
static FT_Int cff_compute_bias(FT_Int in_charstring_type, FT_UInt num_subrs)
struct CFF_FontRec_ * CFF_Font
GLenum GLuint GLint GLenum face
cff_builder_init(CFF_Builder *builder, TT_Face face, CFF_Size size, CFF_GlyphSlot glyph, FT_Bool hinting)
CFF_IndexRec global_subrs_index
CFF_FontRecDictRec font_dict
◆ cff_decoder_prepare()
Definition at line 2363 of file cffdecode.c.
2366 {
2371
2372 FT_Service_CFFLoad cffload = (FT_Service_CFFLoad)
cff->
cffload;
2373
2374
2375
2377 {
2379 glyph_index );
2380
2381
2383 {
2384 FT_TRACE4((
"cff_decoder_prepare: invalid CID subfont index\n" ));
2387 }
2388
2389 FT_TRACE3((
" in subfont %d:\n", fd_index ));
2390
2392
2394 {
2397
2398
2399
2401 }
2402 }
2403
2404 decoder->num_locals = sub->local_subrs_index.count;
2405 decoder->locals = sub->local_subrs;
2407 decoder->cff->top_font.font_dict.charstring_type,
2409
2410 decoder->glyph_width = sub->private_dict.default_width;
2411 decoder->nominal_width = sub->private_dict.nominal_width;
2412
2413 decoder->current_subfont = sub;
2414
2417 }
ios_base &_STLP_CALL internal(ios_base &__s)
struct CFF_InternalRec_ * CFF_Internal
#define FT_TRACE3(varformat)
#define FT_TRACE4(varformat)
CFF_SubFont subfonts[CFF_MAX_CID_FONTS]
CFF_FDSelectRec fd_select
FT_Size_Internal internal
◆ cff_lookup_glyph_by_stdcharcode()
Definition at line 422 of file cffdecode.c.
424 {
427
428 FT_Service_CFFLoad cffload;
429
430
431
433 return -1;
434
435
436 if ( charcode < 0 || charcode > 255 )
437 return -1;
438
439#if 0
440
441 FT_Service_CFFLoad cffload;
442
443
445 if ( !cffload )
446 {
447 FT_ERROR((
"cff_lookup_glyph_by_stdcharcode:"
448 " the `cffload' module is not available\n" ));
449 return FT_THROW( Unimplemented_Feature );
450 }
451#endif
452
454
455
456 glyph_sid = cffload->get_standard_encoding( (
FT_UInt)charcode );
457
459 {
462 }
463
464 return -1;
465 }
#define FT_ERROR(varformat)
#define FT_FACE_FIND_GLOBAL_SERVICE(face, ptr, id)
Referenced by cf2_getSeacComponent().