Make the new objects copy over values. They are essentially wrapper types for the different decoders/builders. * include/freetype/internal/psaux.h: Update declarations. (PS_Builder): Add `is_t1' flag. (PS_Decoder_{Get,Free}_Glyph_Callback): Renamed to... (CFF_Decoder_{Get,Free}_Glyph_Callback: ... this. (PS_Decoder): Updated. Add `t1_parse_callback' member. (PSAux_ServiceRec): Add `ps_decoder_init' member. * src/psaux/psdecode.h, src/psaux/psobjs.h: Update declarations. * src/psaux/psdecode.c, src/psaux/psobjs.c: Implement copy with two modes. * src/psaux/psauxmod.c: Add builder and decoder functions to `PSAux' service.
21 lines
291 B
C
21 lines
291 B
C
#ifndef PSDECODE_H_
|
|
#define PSDECODE_H_
|
|
|
|
|
|
#include <ft2build.h>
|
|
#include FT_INTERNAL_POSTSCRIPT_AUX_H
|
|
|
|
|
|
FT_BEGIN_HEADER
|
|
|
|
FT_LOCAL( void )
|
|
ps_decoder_init( void* decoder,
|
|
FT_Bool is_t1,
|
|
PS_Decoder* ps_decoder );
|
|
|
|
|
|
FT_END_HEADER
|
|
|
|
#endif
|
|
|