20#include FT_INTERNAL_DEBUG_H
21#include FT_INTERNAL_GLYPH_LOADER_H
22#include FT_INTERNAL_MEMORY_H
23#include FT_INTERNAL_OBJECTS_H
26#define FT_COMPONENT trace_gloader
94 base->outline.n_points = 0;
95 base->outline.n_contours = 0;
96 base->num_subglyphs = 0;
110 FT_FREE( loader->base.outline.points );
111 FT_FREE( loader->base.outline.tags );
112 FT_FREE( loader->base.outline.contours );
113 FT_FREE( loader->base.extra_points );
114 FT_FREE( loader->base.subglyphs );
116 loader->base.extra_points2 =
NULL;
118 loader->max_points = 0;
119 loader->max_contours = 0;
120 loader->max_subglyphs = 0;
172 if ( !
FT_NEW_ARRAY( loader->base.extra_points, 2 * loader->max_points ) )
174 loader->use_extra = 1;
175 loader->base.extra_points2 = loader->base.extra_points +
217 old_max = loader->max_points;
219 if ( new_max > old_max )
230 if ( loader->use_extra )
233 old_max * 2, new_max * 2 ) )
237 loader->base.extra_points + old_max,
240 loader->base.extra_points2 = loader->base.extra_points + new_max;
244 loader->max_points = new_max;
248 old_max = loader->max_contours;
251 if ( new_max > old_max )
262 loader->max_contours = new_max;
292 new_max =
base->num_subglyphs +
current->num_subglyphs + n_subs;
293 old_max = loader->max_subglyphs;
294 if ( new_max > old_max )
300 loader->max_subglyphs = new_max;
318 current->outline.n_contours = 0;
341 base = &loader->base;
344 n_curr_contours =
current->outline.n_contours;
345 n_base_points =
base->outline.n_points;
347 base->outline.n_points =
349 base->outline.n_contours =
355 for (
n = 0;
n < n_curr_contours;
n++ )
357 (
short)(
current->outline.contours[
n] + n_base_points );
397 out->n_contours = (
short)num_contours;
unsigned short(__cdecl typeof(TIFFCurrentDirectory))(struct tiff *)
FT_GlyphLoader_Add(FT_GlyphLoader loader)
static void FT_GlyphLoader_Adjust_Subglyphs(FT_GlyphLoader loader)
FT_GlyphLoader_CopyPoints(FT_GlyphLoader target, FT_GlyphLoader source)
FT_GlyphLoader_CheckPoints(FT_GlyphLoader loader, FT_UInt n_points, FT_UInt n_contours)
FT_GlyphLoader_CreateExtra(FT_GlyphLoader loader)
FT_GlyphLoader_Rewind(FT_GlyphLoader loader)
FT_GlyphLoader_Prepare(FT_GlyphLoader loader)
FT_GlyphLoader_Done(FT_GlyphLoader loader)
FT_GlyphLoader_Reset(FT_GlyphLoader loader)
static void FT_GlyphLoader_Adjust_Points(FT_GlyphLoader loader)
FT_GlyphLoader_New(FT_Memory memory, FT_GlyphLoader *aloader)
FT_GlyphLoader_CheckSubGlyphs(FT_GlyphLoader loader, FT_UInt n_subs)
#define FT_OUTLINE_CONTOURS_MAX
#define FT_OUTLINE_POINTS_MAX
#define FT_NEW_ARRAY(ptr, count)
#define FT_ARRAY_COPY(dest, source, count)
#define FT_RENEW_ARRAY(ptr, curcnt, newcnt)
#define FT_ARRAY_MOVE(dest, source, count)
#define FT_PAD_CEIL(x, n)
typedefFT_BEGIN_HEADER struct FT_MemoryRec_ * FT_Memory
FT_BEGIN_HEADER typedef unsigned char FT_Bool
struct task_struct * current
static char memory[1024 *256]
FT_Vector * extra_points2