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 2329 of file cffdecode.c.
2337 {
2339
2340
2341
2343
2344
2346
2347
2354
2355 decoder->hint_mode = hint_mode;
2356
2358 decoder->free_glyph_callback = free_callback;
2359 }
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 2365 of file cffdecode.c.
2368 {
2373
2374 FT_Service_CFFLoad cffload = (FT_Service_CFFLoad)
cff->
cffload;
2375
2376
2377
2379 {
2381 glyph_index );
2382
2383
2385 {
2386 FT_TRACE4((
"cff_decoder_prepare: invalid CID subfont index\n" ));
2389 }
2390
2391 FT_TRACE3((
" in subfont %d:\n", fd_index ));
2392
2394
2396 {
2399
2400
2401
2403 }
2404 }
2405
2406 decoder->num_locals = sub->local_subrs_index.count;
2407 decoder->locals = sub->local_subrs;
2409 decoder->cff->top_font.font_dict.charstring_type,
2411
2412 decoder->glyph_width = sub->private_dict.default_width;
2413 decoder->nominal_width = sub->private_dict.nominal_width;
2414
2415 decoder->current_subfont = sub;
2416
2419 }
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 421 of file cffdecode.c.
423 {
426
427 FT_Service_CFFLoad cffload;
428
429
430
432 return -1;
433
434
435 if ( charcode < 0 || charcode > 255 )
436 return -1;
437
438#if 0
439
440 FT_Service_CFFLoad cffload;
441
442
444 if ( !cffload )
445 {
446 FT_ERROR((
"cff_lookup_glyph_by_stdcharcode:"
447 " the `cffload' module is not available\n" ));
448 return FT_THROW( Unimplemented_Feature );
449 }
450#endif
451
453
454
455 glyph_sid = cffload->get_standard_encoding( (
FT_UInt)charcode );
456
458 {
461 }
462
463 return -1;
464 }
#define FT_ERROR(varformat)
#define FT_FACE_FIND_GLOBAL_SERVICE(face, ptr, id)
Referenced by cf2_getSeacComponent().