ReactOS  0.4.15-dev-2103-g9dff498
pfrgload.h File Reference
#include "pfrtypes.h"
Include dependency graph for pfrgload.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

FT_BEGIN_HEADER pfr_glyph_init (PFR_Glyph glyph, FT_GlyphLoader loader)
 
 pfr_glyph_done (PFR_Glyph glyph)
 
 pfr_glyph_load (PFR_Glyph glyph, FT_Stream stream, FT_ULong gps_offset, FT_ULong offset, FT_ULong size)
 

Function Documentation

◆ pfr_glyph_done()

pfr_glyph_done ( PFR_Glyph  glyph)

Definition at line 53 of file pfrgload.c.

54  {
55  FT_Memory memory = glyph->loader->memory;
56 
57 
58  FT_FREE( glyph->x_control );
59  glyph->y_control = NULL;
60 
61  glyph->max_xy_control = 0;
62 #if 0
63  glyph->num_x_control = 0;
64  glyph->num_y_control = 0;
65 #endif
66 
67  FT_FREE( glyph->subs );
68 
69  glyph->max_subs = 0;
70  glyph->num_subs = 0;
71 
72  glyph->loader = NULL;
73  glyph->path_begun = 0;
74  }
FT_UInt max_subs
Definition: pfrtypes.h:318
FT_Memory memory
Definition: ftgloadr.h:63
static char memory[1024 *256]
Definition: process.c:116
FT_UInt num_subs
Definition: pfrtypes.h:317
FT_Bool path_begun
Definition: pfrtypes.h:322
FT_Pos * y_control
Definition: pfrtypes.h:314
#define FT_FREE(ptr)
Definition: ftmemory.h:329
FT_GlyphLoader loader
Definition: pfrtypes.h:321
PFR_SubGlyphRec * subs
Definition: pfrtypes.h:319
typedefFT_BEGIN_HEADER struct FT_MemoryRec_ * FT_Memory
Definition: ftsystem.h:66
FT_UInt max_xy_control
Definition: pfrtypes.h:312
#define NULL
Definition: types.h:112
FT_Pos * x_control
Definition: pfrtypes.h:313

Referenced by pfr_slot_done().

◆ pfr_glyph_init()

FT_BEGIN_HEADER pfr_glyph_init ( PFR_Glyph  glyph,
FT_GlyphLoader  loader 
)

Definition at line 40 of file pfrgload.c.

42  {
43  FT_ZERO( glyph );
44 
45  glyph->loader = loader;
46  glyph->path_begun = 0;
47 
48  FT_GlyphLoader_Rewind( loader );
49  }
FT_Bool path_begun
Definition: pfrtypes.h:322
FT_GlyphLoader loader
Definition: pfrtypes.h:321
#define FT_ZERO(p)
Definition: ftmemory.h:237
FT_GlyphLoader_Rewind(FT_GlyphLoader loader)
Definition: ftgloadr.c:88

Referenced by pfr_slot_init().

◆ pfr_glyph_load()

pfr_glyph_load ( PFR_Glyph  glyph,
FT_Stream  stream,
FT_ULong  gps_offset,
FT_ULong  offset,
FT_ULong  size 
)

Definition at line 835 of file pfrgload.c.

840  {
841  /* initialize glyph loader */
842  FT_GlyphLoader_Rewind( glyph->loader );
843 
844  glyph->num_subs = 0;
845 
846  /* load the glyph, recursively when needed */
847  return pfr_glyph_load_rec( glyph, stream, gps_offset, offset, size );
848  }
FT_UInt num_subs
Definition: pfrtypes.h:317
FT_GlyphLoader loader
Definition: pfrtypes.h:321
static FT_Error pfr_glyph_load_rec(PFR_Glyph glyph, FT_Stream stream, FT_ULong gps_offset, FT_ULong offset, FT_ULong size)
Definition: pfrgload.c:722
GLsizeiptr size
Definition: glext.h:5919
GLintptr offset
Definition: glext.h:5920
Definition: parse.h:22
FT_GlyphLoader_Rewind(FT_GlyphLoader loader)
Definition: ftgloadr.c:88

Referenced by pfr_slot_load().