no message

This commit is contained in:
David Turner 2002-03-14 12:56:35 +00:00
parent ad4597babc
commit 0a86d63289
11 changed files with 42 additions and 38 deletions

View File

@ -50,6 +50,9 @@
src/base/ftnames.c, src/cff/cffdrivr.c,
src/sfnt/*.c, src/truetype/*.c: updated SFNT/TrueType type
definitions
* include/freetype/freetype.h, include/freetype/internal/ftgloadr.h:
updating type defintiions for the glyph loader
2002-03-13 Antoine Leca <antoine@oriolnet.com>

View File

@ -1134,7 +1134,7 @@ FT_BEGIN_HEADER
/* The subglyph implementation is not part of the high-level API, */
/* hence the forward structure declaration. */
/* */
typedef struct FT_SubGlyph_ FT_SubGlyph;
typedef struct FT_SubGlyphRec_* FT_SubGlyph;
/*************************************************************************/
@ -1299,7 +1299,7 @@ FT_BEGIN_HEADER
FT_Outline outline;
FT_UInt num_subglyphs;
FT_SubGlyph* subglyphs;
FT_SubGlyph subglyphs;
void* control_data;
long control_len;

View File

@ -50,14 +50,15 @@ FT_BEGIN_HEADER
};
struct FT_SubGlyph_
typedef struct FT_SubGlyphRec_
{
FT_Int index;
FT_UShort flags;
FT_Int arg1;
FT_Int arg2;
FT_Matrix transform;
};
} FT_SubGlyphRec;
typedef struct FT_GlyphLoadRec_
@ -65,7 +66,7 @@ FT_BEGIN_HEADER
FT_Outline outline; /* outline */
FT_Vector* extra_points; /* extra points table */
FT_UInt num_subglyphs; /* number of subglyphs */
FT_SubGlyph* subglyphs; /* subglyphs */
FT_SubGlyph subglyphs; /* subglyphs */
} FT_GlyphLoadRec, *FT_GlyphLoad;
@ -93,7 +94,7 @@ FT_BEGIN_HEADER
/* add an extra points table to a glyph loader */
FT_BASE( FT_Error )
FT_GlyphLoader_Create_Extra( FT_GlyphLoader loader );
FT_GlyphLoader_CreateExtra( FT_GlyphLoader loader );
/* destroy a glyph loader */
FT_BASE( void )
@ -110,15 +111,15 @@ FT_BEGIN_HEADER
/* check that there is enough room to add 'n_points' and 'n_contours' */
/* to the glyph loader.. */
FT_BASE( FT_Error )
FT_GlyphLoader_Check_Points( FT_GlyphLoader loader,
FT_UInt n_points,
FT_UInt n_contours );
FT_GlyphLoader_CheckPoints( FT_GlyphLoader loader,
FT_UInt n_points,
FT_UInt n_contours );
/* check that there is enough room to add 'n_subs' sub-glyphs to */
/* a glyph loader */
FT_BASE( FT_Error )
FT_GlyphLoader_Check_Subglyphs( FT_GlyphLoader loader,
FT_UInt n_subs );
FT_GlyphLoader_CheckSubGlyphs( FT_GlyphLoader loader,
FT_UInt n_subs );
/* prepare a glyph loader, i.e. empty the current glyph */
FT_BASE( void )
@ -130,8 +131,8 @@ FT_BEGIN_HEADER
/* copy points from one glyph loader to another */
FT_BASE( FT_Error )
FT_GlyphLoader_Copy_Points( FT_GlyphLoader target,
FT_GlyphLoader source );
FT_GlyphLoader_CopyPoints( FT_GlyphLoader target,
FT_GlyphLoader source );
/* */

View File

@ -1141,7 +1141,7 @@
{
FT_UInt nn, num_subglyphs = slot->num_subglyphs;
FT_UInt num_base_subgs, start_point;
FT_SubGlyph* subglyph;
FT_SubGlyph subglyph;
start_point = gloader->base.outline.n_points;

View File

@ -50,12 +50,12 @@ FT_BEGIN_HEADER
#define ah_loader_done FT_GlyphLoader_Done
#define ah_loader_reset FT_GlyphLoader_Reset
#define ah_loader_rewind FT_GlyphLoader_Rewind
#define ah_loader_create_extra FT_GlyphLoader_Create_Extra
#define ah_loader_check_points FT_GlyphLoader_Check_Points
#define ah_loader_check_subglyphs FT_GlyphLoader_Check_Subglyphs
#define ah_loader_create_extra FT_GlyphLoader_CreateExtra
#define ah_loader_check_points FT_GlyphLoader_CheckPoints
#define ah_loader_check_subglyphs FT_GlyphLoader_CheckSubGlyphs
#define ah_loader_prepare FT_GlyphLoader_Prepare
#define ah_loader_add FT_GlyphLoader_Add
#define ah_loader_copy_points FT_GlyphLoader_Copy_Points
#define ah_loader_copy_points FT_GlyphLoader_CopyPoints
FT_END_HEADER

View File

@ -135,7 +135,7 @@
FT_BASE_DEF( FT_Error )
FT_GlyphLoader_Create_Extra( FT_GlyphLoader loader )
FT_GlyphLoader_CreateExtra( FT_GlyphLoader loader )
{
FT_Error error;
FT_Memory memory = loader->memory;
@ -168,7 +168,7 @@
/* DOESN'T change the number of points within the loader! */
/* */
FT_BASE_DEF( FT_Error )
FT_GlyphLoader_Check_Points( FT_GlyphLoader loader,
FT_GlyphLoader_CheckPoints( FT_GlyphLoader loader,
FT_UInt n_points,
FT_UInt n_contours )
{
@ -229,7 +229,7 @@
/* NOT change the number of subglyphs within the loader! */
/* */
FT_BASE_DEF( FT_Error )
FT_GlyphLoader_Check_Subglyphs( FT_GlyphLoader loader,
FT_GlyphLoader_CheckSubGlyphs( FT_GlyphLoader loader,
FT_UInt n_subs )
{
FT_Memory memory = loader->memory;
@ -304,7 +304,7 @@
FT_BASE_DEF( FT_Error )
FT_GlyphLoader_Copy_Points( FT_GlyphLoader target,
FT_GlyphLoader_CopyPoints( FT_GlyphLoader target,
FT_GlyphLoader source )
{
FT_Error error;
@ -312,7 +312,7 @@
FT_UInt num_contours = source->base.outline.n_contours;
error = FT_GlyphLoader_Check_Points( target, num_points, num_contours );
error = FT_GlyphLoader_CheckPoints( target, num_points, num_contours );
if ( !error )
{
FT_Outline* out = &target->base.outline;

View File

@ -400,7 +400,7 @@
check_points( CFF_Builder* builder,
FT_Int count )
{
return FT_GlyphLoader_Check_Points( builder->loader, count, 0 );
return FT_GlyphLoader_CheckPoints( builder->loader, count, 0 );
}
@ -461,7 +461,7 @@
return CFF_Err_Ok;
}
error = FT_GlyphLoader_Check_Points( builder->loader, 0, 1 );
error = FT_GlyphLoader_CheckPoints( builder->loader, 0, 1 );
if ( !error )
{
if ( outline->n_contours > 0 )
@ -589,11 +589,11 @@
{
FT_GlyphSlot glyph = (FT_GlyphSlot)decoder->builder.glyph;
FT_GlyphLoader loader = glyph->internal->loader;
FT_SubGlyph* subg;
FT_SubGlyph subg;
/* reallocate subglyph array if necessary */
error = FT_GlyphLoader_Check_Subglyphs( loader, 2 );
error = FT_GlyphLoader_CheckSubGlyphs( loader, 2 );
if ( error )
goto Exit;

View File

@ -1148,7 +1148,7 @@
T1_Builder_Check_Points( T1_Builder builder,
FT_Int count )
{
return FT_GlyphLoader_Check_Points( builder->loader, count, 0 );
return FT_GlyphLoader_CheckPoints( builder->loader, count, 0 );
}
@ -1214,7 +1214,7 @@
return PSaux_Err_Ok;
}
error = FT_GlyphLoader_Check_Points( builder->loader, 0, 1 );
error = FT_GlyphLoader_CheckPoints( builder->loader, 0, 1 );
if ( !error )
{
if ( outline->n_contours > 0 )

View File

@ -219,11 +219,11 @@
{
FT_GlyphSlot glyph = (FT_GlyphSlot)decoder->builder.glyph;
FT_GlyphLoader loader = glyph->internal->loader;
FT_SubGlyph* subg;
FT_SubGlyph subg;
/* reallocate subglyph array if necessary */
error = FT_GlyphLoader_Check_Subglyphs( loader, 2 );
error = FT_GlyphLoader_CheckSubGlyphs( loader, 2 );
if ( error )
goto Exit;

View File

@ -295,7 +295,7 @@
if ( n_contours > 0 )
n_points = cur[-1] + 1;
error = FT_GlyphLoader_Check_Points( gloader, n_points + 2, 0 );
error = FT_GlyphLoader_CheckPoints( gloader, n_points + 2, 0 );
if ( error )
goto Fail;
@ -471,7 +471,7 @@
FT_Error error;
FT_Stream stream = loader->stream;
FT_GlyphLoader gloader = loader->gloader;
FT_SubGlyph* subglyph;
FT_SubGlyph subglyph;
FT_UInt num_subglyphs;
FT_Int byte_len = loader->byte_len;
@ -484,7 +484,7 @@
/* check that we can load a new subglyph */
error = FT_GlyphLoader_Check_Subglyphs( gloader, num_subglyphs + 1 );
error = FT_GlyphLoader_CheckSubGlyphs( gloader, num_subglyphs + 1 );
if ( error )
goto Fail;
@ -878,7 +878,7 @@
if ( contours_count >= 0 )
{
/* check that we can add the contours to the glyph */
error = FT_GlyphLoader_Check_Points( gloader, 0, contours_count );
error = FT_GlyphLoader_CheckPoints( gloader, 0, contours_count );
if ( error )
goto Fail;
@ -965,7 +965,7 @@
/* Now, read each subglyph independently. */
{
FT_Int n, num_base_points, num_new_points;
FT_SubGlyph* subglyph = 0;
FT_SubGlyph subglyph = 0;
FT_UInt num_subglyphs = gloader->current.num_subglyphs;
FT_UInt num_base_subgs = gloader->base.num_subglyphs;
@ -1229,7 +1229,7 @@
glyph->outline.flags &= ~ft_outline_single_pass;
/* copy outline to our glyph slot */
FT_GlyphLoader_Copy_Points( glyph->internal->loader, loader->gloader );
FT_GlyphLoader_CopyPoints( glyph->internal->loader, loader->gloader );
glyph->outline = glyph->internal->loader->base.outline;
/* translate array so that (0,0) is the glyph's origin */

View File

@ -815,7 +815,7 @@
/* set `extra' in glyph loader */
error = FT_GlyphLoader_Create_Extra( FT_DRIVER( driver )->glyph_loader );
error = FT_GlyphLoader_CreateExtra( FT_DRIVER( driver )->glyph_loader );
/* init extension registry if needed */