Introduce `PS_Decoder' and `PS_Builder' which include all fields from either Type 1 or CFF decoders/builders. * include/freetype/internal/psaux.h (PS_Builder, PS_Decoder): New structs. * src/psaux/psobjs.c, src/psaux/psobjs.h: Add `PS_Builder' functions. * src/psaux/psdecode.c, src/psaux/psdecode.h: New files to hold `PS_Decoder' initialization functions. * src/psaux/psaux.c, src/psaux/Jamfile (_sources), src/psaux/rules.mk (PSAUX_DRV_SRC): Updated.GSoC-2017-kushal
parent
766f529a31
commit
eba54c28dc
9 changed files with 580 additions and 0 deletions
@ -0,0 +1,57 @@ |
||||
|
||||
|
||||
#include <ft2build.h> |
||||
#include FT_INTERNAL_SERVICE_H |
||||
#include FT_SERVICE_CFF_TABLE_LOAD_H |
||||
|
||||
#include "psdecode.h" |
||||
#include "psobjs.h" |
||||
|
||||
#include "psauxerr.h" |
||||
|
||||
|
||||
/*************************************************************************/ |
||||
/* */ |
||||
/* <Function> */ |
||||
/* ps_decoder_init */ |
||||
/* */ |
||||
/* <Description> */ |
||||
/* Initializes a given glyph decoder. */ |
||||
/* */ |
||||
/* <InOut> */ |
||||
/* decoder :: A pointer to the glyph builder to initialize. */ |
||||
/* */ |
||||
/* <Input> */ |
||||
/* face :: The current face object. */ |
||||
/* */ |
||||
/* size :: The current size object. */ |
||||
/* */ |
||||
/* slot :: The current glyph object. */ |
||||
/* */ |
||||
/* hinting :: Whether hinting is active. */ |
||||
/* */ |
||||
/* hint_mode :: The hinting mode. */ |
||||
/* */ |
||||
FT_LOCAL_DEF( void ) |
||||
ps_decoder_init( PS_Decoder* decoder, |
||||
TT_Face face, |
||||
FT_Size size, |
||||
CFF_GlyphSlot slot, |
||||
FT_Byte** glyph_names, |
||||
PS_Blend blend, |
||||
FT_Bool hinting, |
||||
FT_Render_Mode hint_mode, |
||||
PS_Decoder_Get_Glyph_Callback get_callback, |
||||
PS_Decoder_Free_Glyph_Callback free_callback ) |
||||
{ |
||||
} |
||||
|
||||
|
||||
/* this function is used to select the subfont */ |
||||
/* and the locals subrs array */ |
||||
FT_LOCAL_DEF( FT_Error ) |
||||
ps_decoder_prepare( PS_Decoder* decoder, |
||||
FT_Size size, |
||||
FT_UInt glyph_index ) |
||||
{ |
||||
} |
@ -0,0 +1,13 @@ |
||||
#ifndef PSDECODE_H_ |
||||
#define PSDECODE_H_ |
||||
|
||||
|
||||
#include <ft2build.h> |
||||
#include FT_INTERNAL_POSTSCRIPT_AUX_H |
||||
|
||||
#include "cffdecode.h" |
||||
#include "t1decode.h" |
||||
|
||||
|
||||
|
||||
#endif |
Loading…
Reference in new issue