#include <ft2build.h>
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 2277 of file cffdecode.c.
2285 {
2287
2288
2289
2291
2292
2294
2295
2302
2304
2307 }
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_Decoder_Get_Glyph_Callback get_glyph_callback
CFF_Decoder_Free_Glyph_Callback free_glyph_callback
CFF_IndexRec global_subrs_index
CFF_FontRecDictRec font_dict
◆ cff_decoder_prepare()
Definition at line 2313 of file cffdecode.c.
2316 {
2321
2322 FT_Service_CFFLoad cffload = (FT_Service_CFFLoad)
cff->
cffload;
2323
2324
2325
2327 {
2329 glyph_index );
2330
2331
2333 {
2334 FT_TRACE4((
"cff_decoder_prepare: invalid CID subfont index\n" ));
2337 }
2338
2339 FT_TRACE3((
" in subfont %d:\n", fd_index ));
2340
2342
2344 {
2347
2348
2349
2351 }
2352 }
2353
2354 decoder->
num_locals = sub->local_subrs_index.count;
2355 decoder->
locals = sub->local_subrs;
2359
2360 decoder->
glyph_width = sub->private_dict.default_width;
2362
2364
2367 }
ios_base &_STLP_CALL internal(ios_base &__s)
struct CFF_InternalRec_ * CFF_Internal
#define FT_TRACE3(varformat)
#define FT_TRACE4(varformat)
CFF_SubFont current_subfont
CFF_SubFont subfonts[CFF_MAX_CID_FONTS]
CFF_FDSelectRec fd_select
FT_Size_Internal internal
◆ cff_lookup_glyph_by_stdcharcode()
Definition at line 419 of file cffdecode.c.
421 {
424
425 FT_Service_CFFLoad cffload;
426
427
428
430 return -1;
431
432
433 if ( charcode < 0 || charcode > 255 )
434 return -1;
435
436#if 0
437
438 FT_Service_CFFLoad cffload;
439
440
442 if ( !cffload )
443 {
444 FT_ERROR((
"cff_lookup_glyph_by_stdcharcode:"
445 " the `cffload' module is not available\n" ));
446 return FT_THROW( Unimplemented_Feature );
447 }
448#endif
449
451
452
453 glyph_sid = cffload->get_standard_encoding( (
FT_UInt)charcode );
454
456 {
459 }
460
461 return -1;
462 }
#define FT_ERROR(varformat)
#define FT_FACE_FIND_GLOBAL_SERVICE(face, ptr, id)
Referenced by cf2_getSeacComponent().