formatting
This commit is contained in:
parent
52005c3042
commit
4a2305cf0c
|
@ -48,7 +48,8 @@
|
|||
#else
|
||||
extern
|
||||
#endif
|
||||
int munmap( char* addr,
|
||||
int
|
||||
munmap( char* addr,
|
||||
int len );
|
||||
|
||||
#define MUNMAP_ARG_CAST char *
|
||||
|
|
|
@ -48,7 +48,8 @@
|
|||
#else
|
||||
extern
|
||||
#endif
|
||||
int munmap( char* addr,
|
||||
int
|
||||
munmap( char* addr,
|
||||
int len );
|
||||
|
||||
#define MUNMAP_ARG_CAST char *
|
||||
|
|
|
@ -1330,7 +1330,8 @@ FT_BEGIN_HEADER
|
|||
/* <Return> */
|
||||
/* FreeType error code. 0 means success. */
|
||||
/* */
|
||||
FT_EXPORT( FT_Error ) FT_Init_FreeType( FT_Library *alibrary );
|
||||
FT_EXPORT( FT_Error )
|
||||
FT_Init_FreeType( FT_Library *alibrary );
|
||||
|
||||
|
||||
/*************************************************************************/
|
||||
|
@ -1348,7 +1349,8 @@ FT_BEGIN_HEADER
|
|||
/* <Return> */
|
||||
/* FreeType error code. 0 means success. */
|
||||
/* */
|
||||
FT_EXPORT( FT_Error ) FT_Done_FreeType( FT_Library library );
|
||||
FT_EXPORT( FT_Error )
|
||||
FT_Done_FreeType( FT_Library library );
|
||||
|
||||
|
||||
/*************************************************************************/
|
||||
|
@ -1505,7 +1507,8 @@ FT_BEGIN_HEADER
|
|||
/* `aface'. Its return value should be 0 if the font format is */
|
||||
/* recognized, or non-zero if not. */
|
||||
/* */
|
||||
FT_EXPORT( FT_Error ) FT_New_Face( FT_Library library,
|
||||
FT_EXPORT( FT_Error )
|
||||
FT_New_Face( FT_Library library,
|
||||
const char* filepathname,
|
||||
FT_Long face_index,
|
||||
FT_Face *aface );
|
||||
|
@ -1552,7 +1555,8 @@ FT_BEGIN_HEADER
|
|||
/* `aface'. Its return value should be 0 if the font format is */
|
||||
/* recognized, or non-zero if not. */
|
||||
/* */
|
||||
FT_EXPORT( FT_Error ) FT_New_Memory_Face( FT_Library library,
|
||||
FT_EXPORT( FT_Error )
|
||||
FT_New_Memory_Face( FT_Library library,
|
||||
const FT_Byte* file_base,
|
||||
FT_Long file_size,
|
||||
FT_Long face_index,
|
||||
|
@ -1595,7 +1599,8 @@ FT_BEGIN_HEADER
|
|||
/* `*face'. Its return value should be 0 if the font format is */
|
||||
/* recognized, or non-zero if not. */
|
||||
/* */
|
||||
FT_EXPORT( FT_Error ) FT_Open_Face( FT_Library library,
|
||||
FT_EXPORT( FT_Error )
|
||||
FT_Open_Face( FT_Library library,
|
||||
FT_Open_Args* args,
|
||||
FT_Long face_index,
|
||||
FT_Face *aface );
|
||||
|
@ -1633,7 +1638,8 @@ FT_BEGIN_HEADER
|
|||
/* when invoking this function. Most drivers simply do not implement */
|
||||
/* file attachments. */
|
||||
/* */
|
||||
FT_EXPORT( FT_Error ) FT_Attach_File( FT_Face face,
|
||||
FT_EXPORT( FT_Error )
|
||||
FT_Attach_File( FT_Face face,
|
||||
const char* filepathname );
|
||||
|
||||
|
||||
|
@ -1664,7 +1670,8 @@ FT_BEGIN_HEADER
|
|||
/* when invoking this function. Most drivers simply do not implement */
|
||||
/* file attachments. */
|
||||
/* */
|
||||
FT_EXPORT( FT_Error ) FT_Attach_Stream( FT_Face face,
|
||||
FT_EXPORT( FT_Error )
|
||||
FT_Attach_Stream( FT_Face face,
|
||||
FT_Open_Args* parameters );
|
||||
|
||||
|
||||
|
@ -1683,7 +1690,8 @@ FT_BEGIN_HEADER
|
|||
/* <Return> */
|
||||
/* FreeType error code. 0 means success. */
|
||||
/* */
|
||||
FT_EXPORT( FT_Error ) FT_Done_Face( FT_Face face );
|
||||
FT_EXPORT( FT_Error )
|
||||
FT_Done_Face( FT_Face face );
|
||||
|
||||
|
||||
/*************************************************************************/
|
||||
|
@ -1720,7 +1728,8 @@ FT_BEGIN_HEADER
|
|||
/* When dealing with fixed-size faces (i.e., non-scalable formats), */
|
||||
/* use the function FT_Set_Pixel_Sizes(). */
|
||||
/* */
|
||||
FT_EXPORT( FT_Error ) FT_Set_Char_Size( FT_Face face,
|
||||
FT_EXPORT( FT_Error )
|
||||
FT_Set_Char_Size( FT_Face face,
|
||||
FT_F26Dot6 char_width,
|
||||
FT_F26Dot6 char_height,
|
||||
FT_UInt horz_resolution,
|
||||
|
@ -1766,7 +1775,8 @@ FT_BEGIN_HEADER
|
|||
/* guarantee in any way that you will get glyph bitmaps that all fit */
|
||||
/* within an 8x8 cell (sometimes even far from it). */
|
||||
/* */
|
||||
FT_EXPORT( FT_Error ) FT_Set_Pixel_Sizes( FT_Face face,
|
||||
FT_EXPORT( FT_Error )
|
||||
FT_Set_Pixel_Sizes( FT_Face face,
|
||||
FT_UInt pixel_width,
|
||||
FT_UInt pixel_height );
|
||||
|
||||
|
@ -1805,7 +1815,8 @@ FT_BEGIN_HEADER
|
|||
/* Note that this also transforms the `face.glyph.advance' field, but */
|
||||
/* *not* the values in `face.glyph.metrics'. */
|
||||
/* */
|
||||
FT_EXPORT( FT_Error ) FT_Load_Glyph( FT_Face face,
|
||||
FT_EXPORT( FT_Error )
|
||||
FT_Load_Glyph( FT_Face face,
|
||||
FT_UInt glyph_index,
|
||||
FT_Int load_flags );
|
||||
|
||||
|
@ -1849,7 +1860,8 @@ FT_BEGIN_HEADER
|
|||
/* Note that this also transforms the `face.glyph.advance' field, but */
|
||||
/* *not* the values in `face.glyph.metrics'. */
|
||||
/* */
|
||||
FT_EXPORT( FT_Error ) FT_Load_Char( FT_Face face,
|
||||
FT_EXPORT( FT_Error )
|
||||
FT_Load_Char( FT_Face face,
|
||||
FT_ULong char_code,
|
||||
FT_Int load_flags );
|
||||
|
||||
|
@ -2087,7 +2099,8 @@ FT_BEGIN_HEADER
|
|||
/* the transformation and is performed on the character size given in */
|
||||
/* the last call to FT_Set_Char_Sizes() or FT_Set_Pixel_Sizes(). */
|
||||
/* */
|
||||
FT_EXPORT( void ) FT_Set_Transform( FT_Face face,
|
||||
FT_EXPORT( void )
|
||||
FT_Set_Transform( FT_Face face,
|
||||
FT_Matrix* matrix,
|
||||
FT_Vector* delta );
|
||||
|
||||
|
@ -2149,7 +2162,8 @@ FT_BEGIN_HEADER
|
|||
/* <Return> */
|
||||
/* FreeType error code. 0 means success. */
|
||||
/* */
|
||||
FT_EXPORT( FT_Error ) FT_Render_Glyph( FT_GlyphSlot slot,
|
||||
FT_EXPORT( FT_Error )
|
||||
FT_Render_Glyph( FT_GlyphSlot slot,
|
||||
FT_UInt render_mode );
|
||||
|
||||
|
||||
|
@ -2214,7 +2228,8 @@ FT_BEGIN_HEADER
|
|||
/* kernings, are out of the scope of this API function -- they can be */
|
||||
/* implemented through format-specific interfaces. */
|
||||
/* */
|
||||
FT_EXPORT( FT_Error ) FT_Get_Kerning( FT_Face face,
|
||||
FT_EXPORT( FT_Error )
|
||||
FT_Get_Kerning( FT_Face face,
|
||||
FT_UInt left_glyph,
|
||||
FT_UInt right_glyph,
|
||||
FT_UInt kern_mode,
|
||||
|
@ -2257,7 +2272,8 @@ FT_BEGIN_HEADER
|
|||
/* macro FT_CONFIG_OPTION_NO_GLYPH_NAMES is defined in */
|
||||
/* `include/freetype/config/ftoptions.h' */
|
||||
/* */
|
||||
FT_EXPORT( FT_Error ) FT_Get_Glyph_Name( FT_Face face,
|
||||
FT_EXPORT( FT_Error )
|
||||
FT_Get_Glyph_Name( FT_Face face,
|
||||
FT_UInt glyph_index,
|
||||
FT_Pointer buffer,
|
||||
FT_UInt buffer_max );
|
||||
|
@ -2285,7 +2301,8 @@ FT_BEGIN_HEADER
|
|||
/* This function will return an error if no charmap in the face */
|
||||
/* corresponds to the encoding queried here. */
|
||||
/* */
|
||||
FT_EXPORT( FT_Error ) FT_Select_Charmap( FT_Face face,
|
||||
FT_EXPORT( FT_Error )
|
||||
FT_Select_Charmap( FT_Face face,
|
||||
FT_Encoding encoding );
|
||||
|
||||
|
||||
|
@ -2312,7 +2329,8 @@ FT_BEGIN_HEADER
|
|||
/* the face (i.e., if it is not listed in the face->charmaps[] */
|
||||
/* table). */
|
||||
/* */
|
||||
FT_EXPORT( FT_Error ) FT_Set_Charmap( FT_Face face,
|
||||
FT_EXPORT( FT_Error )
|
||||
FT_Set_Charmap( FT_Face face,
|
||||
FT_CharMap charmap );
|
||||
|
||||
|
||||
|
@ -2333,7 +2351,8 @@ FT_BEGIN_HEADER
|
|||
/* <Return> */
|
||||
/* The glyph index. 0 means `undefined character code'. */
|
||||
/* */
|
||||
FT_EXPORT( FT_UInt ) FT_Get_Char_Index( FT_Face face,
|
||||
FT_EXPORT( FT_UInt )
|
||||
FT_Get_Char_Index( FT_Face face,
|
||||
FT_ULong charcode );
|
||||
|
||||
|
||||
|
@ -2389,7 +2408,8 @@ FT_BEGIN_HEADER
|
|||
/* divide by zero; it simply returns `MaxInt' or `MinInt' depending */
|
||||
/* on the signs of `a' and `b'. */
|
||||
/* */
|
||||
FT_EXPORT( FT_Long ) FT_MulDiv( FT_Long a,
|
||||
FT_EXPORT( FT_Long )
|
||||
FT_MulDiv( FT_Long a,
|
||||
FT_Long b,
|
||||
FT_Long c );
|
||||
|
||||
|
@ -2423,7 +2443,8 @@ FT_BEGIN_HEADER
|
|||
/* _second_ argument of this function; this can make a great */
|
||||
/* difference. */
|
||||
/* */
|
||||
FT_EXPORT( FT_Long ) FT_MulFix( FT_Long a,
|
||||
FT_EXPORT( FT_Long )
|
||||
FT_MulFix( FT_Long a,
|
||||
FT_Long b );
|
||||
|
||||
|
||||
|
@ -2450,7 +2471,8 @@ FT_BEGIN_HEADER
|
|||
/* 32 bits, then the division is computed directly. Otherwise, we */
|
||||
/* use a specialized version of the old FT_MulDiv64(). */
|
||||
/* */
|
||||
FT_EXPORT( FT_Long ) FT_DivFix( FT_Long a,
|
||||
FT_EXPORT( FT_Long )
|
||||
FT_DivFix( FT_Long a,
|
||||
FT_Long b );
|
||||
|
||||
|
||||
|
@ -2468,7 +2490,8 @@ FT_BEGIN_HEADER
|
|||
/* <Return> */
|
||||
/* The result of `(a + 0x8000) & -0x10000'. */
|
||||
/* */
|
||||
FT_EXPORT( FT_Fixed ) FT_RoundFix( FT_Fixed a );
|
||||
FT_EXPORT( FT_Fixed )
|
||||
FT_RoundFix( FT_Fixed a );
|
||||
|
||||
|
||||
/*************************************************************************/
|
||||
|
@ -2486,7 +2509,8 @@ FT_BEGIN_HEADER
|
|||
/* <Return> */
|
||||
/* The result of `(a + 0x10000 - 1) & -0x10000'. */
|
||||
/* */
|
||||
FT_EXPORT( FT_Fixed ) FT_CeilFix( FT_Fixed a );
|
||||
FT_EXPORT( FT_Fixed )
|
||||
FT_CeilFix( FT_Fixed a );
|
||||
|
||||
|
||||
/*************************************************************************/
|
||||
|
@ -2504,7 +2528,8 @@ FT_BEGIN_HEADER
|
|||
/* <Return> */
|
||||
/* The result of `a & -0x10000'. */
|
||||
/* */
|
||||
FT_EXPORT( FT_Fixed ) FT_FloorFix( FT_Fixed a );
|
||||
FT_EXPORT( FT_Fixed )
|
||||
FT_FloorFix( FT_Fixed a );
|
||||
|
||||
|
||||
/*************************************************************************/
|
||||
|
@ -2524,7 +2549,8 @@ FT_BEGIN_HEADER
|
|||
/* <Note> */
|
||||
/* The result is undefined if either `vector' or `matrix' is invalid. */
|
||||
/* */
|
||||
FT_EXPORT( void ) FT_Vector_Transform( FT_Vector* vec,
|
||||
FT_EXPORT( void )
|
||||
FT_Vector_Transform( FT_Vector* vec,
|
||||
FT_Matrix* matrix );
|
||||
|
||||
|
||||
|
|
|
@ -67,7 +67,8 @@ FT_BEGIN_HEADER
|
|||
/* <Return> */
|
||||
/* FreeType error code. 0 means success. */
|
||||
/* */
|
||||
FT_EXPORT( FT_Error ) FT_Outline_Get_BBox( FT_Outline* outline,
|
||||
FT_EXPORT( FT_Error )
|
||||
FT_Outline_Get_BBox( FT_Outline* outline,
|
||||
FT_BBox *abbox );
|
||||
|
||||
|
||||
|
|
|
@ -110,7 +110,8 @@ FT_BEGIN_HEADER
|
|||
/* face object, like creating a new FT_Size for it, or setting a */
|
||||
/* transformation through FT_Set_Transform()! */
|
||||
/* */
|
||||
typedef FT_Error (*FTC_Face_Requester)( FTC_FaceID face_id,
|
||||
typedef FT_Error
|
||||
(*FTC_Face_Requester)( FTC_FaceID face_id,
|
||||
FT_Library library,
|
||||
FT_Pointer request_data,
|
||||
FT_Face* aface );
|
||||
|
@ -209,7 +210,8 @@ FT_BEGIN_HEADER
|
|||
/* <Return> */
|
||||
/* FreeType error code. 0 means success. */
|
||||
/* */
|
||||
FT_EXPORT( FT_Error ) FTC_Manager_New( FT_Library library,
|
||||
FT_EXPORT( FT_Error )
|
||||
FTC_Manager_New( FT_Library library,
|
||||
FT_UInt max_faces,
|
||||
FT_UInt max_sizes,
|
||||
FT_ULong max_bytes,
|
||||
|
@ -230,7 +232,8 @@ FT_BEGIN_HEADER
|
|||
/* <InOut> */
|
||||
/* manager :: A handle to the manager. */
|
||||
/* */
|
||||
FT_EXPORT( void ) FTC_Manager_Reset( FTC_Manager manager );
|
||||
FT_EXPORT( void )
|
||||
FTC_Manager_Reset( FTC_Manager manager );
|
||||
|
||||
|
||||
/*************************************************************************/
|
||||
|
@ -244,7 +247,8 @@ FT_BEGIN_HEADER
|
|||
/* <Input> */
|
||||
/* manager :: A handle to the target cache manager object. */
|
||||
/* */
|
||||
FT_EXPORT( void ) FTC_Manager_Done( FTC_Manager manager );
|
||||
FT_EXPORT( void )
|
||||
FTC_Manager_Done( FTC_Manager manager );
|
||||
|
||||
|
||||
/*************************************************************************/
|
||||
|
@ -279,7 +283,8 @@ FT_BEGIN_HEADER
|
|||
/* the FT_Set_Transform() function) on a returned face! If you need */
|
||||
/* to transform glyphs, do it yourself after glyph loading. */
|
||||
/* */
|
||||
FT_EXPORT( FT_Error ) FTC_Manager_Lookup_Face( FTC_Manager manager,
|
||||
FT_EXPORT( FT_Error )
|
||||
FTC_Manager_Lookup_Face( FTC_Manager manager,
|
||||
FTC_FaceID face_id,
|
||||
FT_Face *aface );
|
||||
|
||||
|
@ -323,7 +328,8 @@ FT_BEGIN_HEADER
|
|||
/* The returned size object is the face's current size, which means */
|
||||
/* that you can call FT_Load_Glyph() with the face if you need to. */
|
||||
/* */
|
||||
FT_EXPORT( FT_Error ) FTC_Manager_Lookup_Size( FTC_Manager manager,
|
||||
FT_EXPORT( FT_Error )
|
||||
FTC_Manager_Lookup_Size( FTC_Manager manager,
|
||||
FTC_Font font,
|
||||
FT_Face *aface,
|
||||
FT_Size *asize );
|
||||
|
@ -335,8 +341,8 @@ FT_BEGIN_HEADER
|
|||
|
||||
|
||||
/* this must be used internally for the moment */
|
||||
FT_EXPORT( FT_Error ) FTC_Manager_Register_Cache(
|
||||
FTC_Manager manager,
|
||||
FT_EXPORT( FT_Error )
|
||||
FTC_Manager_Register_Cache( FTC_Manager manager,
|
||||
FTC_Cache_Class* clazz,
|
||||
FTC_Cache *acache );
|
||||
|
||||
|
|
|
@ -182,7 +182,8 @@ FT_BEGIN_HEADER
|
|||
/* <Return> */
|
||||
/* FreeType error code. 0 means success. */
|
||||
/* */
|
||||
FT_EXPORT( FT_Error ) FT_Get_Glyph( FT_GlyphSlot slot,
|
||||
FT_EXPORT( FT_Error )
|
||||
FT_Get_Glyph( FT_GlyphSlot slot,
|
||||
FT_Glyph *aglyph );
|
||||
|
||||
|
||||
|
@ -204,7 +205,8 @@ FT_BEGIN_HEADER
|
|||
/* <Return> */
|
||||
/* FreeType error code. 0 means success. */
|
||||
/* */
|
||||
FT_EXPORT( FT_Error ) FT_Glyph_Copy( FT_Glyph source,
|
||||
FT_EXPORT( FT_Error )
|
||||
FT_Glyph_Copy( FT_Glyph source,
|
||||
FT_Glyph *target );
|
||||
|
||||
|
||||
|
@ -233,7 +235,8 @@ FT_BEGIN_HEADER
|
|||
/* The 2x2 transformation matrix is also applied to the glyph's */
|
||||
/* advance vector. */
|
||||
/* */
|
||||
FT_EXPORT( FT_Error ) FT_Glyph_Transform( FT_Glyph glyph,
|
||||
FT_EXPORT( FT_Error )
|
||||
FT_Glyph_Transform( FT_Glyph glyph,
|
||||
FT_Matrix* matrix,
|
||||
FT_Vector* delta );
|
||||
|
||||
|
@ -311,7 +314,8 @@ FT_BEGIN_HEADER
|
|||
};
|
||||
|
||||
|
||||
FT_EXPORT( void ) FT_Glyph_Get_CBox( FT_Glyph glyph,
|
||||
FT_EXPORT( void )
|
||||
FT_Glyph_Get_CBox( FT_Glyph glyph,
|
||||
FT_UInt bbox_mode,
|
||||
FT_BBox *acbox );
|
||||
|
||||
|
@ -387,7 +391,8 @@ FT_BEGIN_HEADER
|
|||
/* This function will always fail if the glyph's format isn't */
|
||||
/* scalable. */
|
||||
/* */
|
||||
FT_EXPORT( FT_Error ) FT_Glyph_To_Bitmap( FT_Glyph* the_glyph,
|
||||
FT_EXPORT( FT_Error )
|
||||
FT_Glyph_To_Bitmap( FT_Glyph* the_glyph,
|
||||
FT_ULong render_mode,
|
||||
FT_Vector* origin,
|
||||
FT_Bool destroy );
|
||||
|
@ -404,7 +409,8 @@ FT_BEGIN_HEADER
|
|||
/* <Input> */
|
||||
/* glyph :: A handle to the target glyph object. */
|
||||
/* */
|
||||
FT_EXPORT( void ) FT_Done_Glyph( FT_Glyph glyph );
|
||||
FT_EXPORT( void )
|
||||
FT_Done_Glyph( FT_Glyph glyph );
|
||||
|
||||
|
||||
/* other helpful functions */
|
||||
|
@ -434,7 +440,8 @@ FT_BEGIN_HEADER
|
|||
/* <Note> */
|
||||
/* The result is undefined if either `a' or `b' is zero. */
|
||||
/* */
|
||||
FT_EXPORT( void ) FT_Matrix_Multiply( FT_Matrix* a,
|
||||
FT_EXPORT( void )
|
||||
FT_Matrix_Multiply( FT_Matrix* a,
|
||||
FT_Matrix* b );
|
||||
|
||||
|
||||
|
@ -453,7 +460,8 @@ FT_BEGIN_HEADER
|
|||
/* <Return> */
|
||||
/* FreeType error code. 0 means success. */
|
||||
/* */
|
||||
FT_EXPORT( FT_Error ) FT_Matrix_Invert( FT_Matrix* matrix );
|
||||
FT_EXPORT( FT_Error )
|
||||
FT_Matrix_Invert( FT_Matrix* matrix );
|
||||
|
||||
|
||||
/* */
|
||||
|
|
|
@ -424,7 +424,8 @@ FT_BEGIN_HEADER
|
|||
/* <Return> */
|
||||
/* Error code. 0 means success. */
|
||||
/* */
|
||||
typedef int (*FT_Outline_MoveTo_Func)( FT_Vector* to,
|
||||
typedef int
|
||||
(*FT_Outline_MoveTo_Func)( FT_Vector* to,
|
||||
void* user );
|
||||
|
||||
|
||||
|
@ -448,7 +449,8 @@ FT_BEGIN_HEADER
|
|||
/* <Return> */
|
||||
/* Error code. 0 means success. */
|
||||
/* */
|
||||
typedef int (*FT_Outline_LineTo_Func)( FT_Vector* to,
|
||||
typedef int
|
||||
(*FT_Outline_LineTo_Func)( FT_Vector* to,
|
||||
void* user );
|
||||
|
||||
|
||||
|
@ -476,7 +478,8 @@ FT_BEGIN_HEADER
|
|||
/* <Return> */
|
||||
/* Error code. 0 means success. */
|
||||
/* */
|
||||
typedef int (*FT_Outline_ConicTo_Func)( FT_Vector* control,
|
||||
typedef int
|
||||
(*FT_Outline_ConicTo_Func)( FT_Vector* control,
|
||||
FT_Vector* to,
|
||||
void* user );
|
||||
|
||||
|
@ -505,7 +508,8 @@ FT_BEGIN_HEADER
|
|||
/* <Return> */
|
||||
/* Error code. 0 means success. */
|
||||
/* */
|
||||
typedef int (*FT_Outline_CubicTo_Func)( FT_Vector* control1,
|
||||
typedef int
|
||||
(*FT_Outline_CubicTo_Func)( FT_Vector* control1,
|
||||
FT_Vector* control2,
|
||||
FT_Vector* to,
|
||||
void* user );
|
||||
|
@ -750,7 +754,8 @@ FT_BEGIN_HEADER
|
|||
/* Otherwise, the callback is only called once per scan-line, and */
|
||||
/* only for those scanlines that do have `gray' pixels on them. */
|
||||
/* */
|
||||
typedef void (*FT_Raster_Span_Func)( int y,
|
||||
typedef void
|
||||
(*FT_Raster_Span_Func)( int y,
|
||||
int count,
|
||||
FT_Span* spans,
|
||||
void* user );
|
||||
|
@ -777,7 +782,8 @@ FT_BEGIN_HEADER
|
|||
/* <Return> */
|
||||
/* 1 if the pixel is `set', 0 otherwise. */
|
||||
/* */
|
||||
typedef int (*FT_Raster_BitTest_Func)( int y,
|
||||
typedef int
|
||||
(*FT_Raster_BitTest_Func)( int y,
|
||||
int x,
|
||||
void* user );
|
||||
|
||||
|
@ -802,7 +808,8 @@ FT_BEGIN_HEADER
|
|||
/* <Return> */
|
||||
/* 1 if the pixel is `set', 0 otherwise. */
|
||||
/* */
|
||||
typedef void (*FT_Raster_BitSet_Func)( int y,
|
||||
typedef void
|
||||
(*FT_Raster_BitSet_Func)( int y,
|
||||
int x,
|
||||
void* user );
|
||||
|
||||
|
@ -944,7 +951,8 @@ FT_BEGIN_HEADER
|
|||
/* FreeType memory allocator. However, this field can be completely */
|
||||
/* ignored by a given raster implementation. */
|
||||
/* */
|
||||
typedef int (*FT_Raster_New_Func)( void* memory,
|
||||
typedef int
|
||||
(*FT_Raster_New_Func)( void* memory,
|
||||
FT_Raster* raster );
|
||||
|
||||
|
||||
|
@ -959,7 +967,8 @@ FT_BEGIN_HEADER
|
|||
/* <Input> */
|
||||
/* raster :: A handle to the raster object. */
|
||||
/* */
|
||||
typedef void (*FT_Raster_Done_Func)( FT_Raster raster );
|
||||
typedef void
|
||||
(*FT_Raster_Done_Func)( FT_Raster raster );
|
||||
|
||||
|
||||
/*************************************************************************/
|
||||
|
@ -989,7 +998,8 @@ FT_BEGIN_HEADER
|
|||
/* passed to the raster constructor). However, this is not */
|
||||
/* recommended for efficiency purposes. */
|
||||
/* */
|
||||
typedef void (*FT_Raster_Reset_Func)( FT_Raster raster,
|
||||
typedef void
|
||||
(*FT_Raster_Reset_Func)( FT_Raster raster,
|
||||
unsigned char* pool_base,
|
||||
unsigned long pool_size );
|
||||
|
||||
|
@ -1012,7 +1022,8 @@ FT_BEGIN_HEADER
|
|||
/* */
|
||||
/* args :: A pointer to the new mode/property to use. */
|
||||
/* */
|
||||
typedef int (*FT_Raster_Set_Mode_Func)( FT_Raster raster,
|
||||
typedef int
|
||||
(*FT_Raster_Set_Mode_Func)( FT_Raster raster,
|
||||
unsigned long mode,
|
||||
void* args );
|
||||
|
||||
|
@ -1051,7 +1062,8 @@ FT_BEGIN_HEADER
|
|||
/* examples of distinct implementations which support direct */
|
||||
/* composition). */
|
||||
/* */
|
||||
typedef int (*FT_Raster_Render_Func)( FT_Raster raster,
|
||||
typedef int
|
||||
(*FT_Raster_Render_Func)( FT_Raster raster,
|
||||
FT_Raster_Params* params );
|
||||
|
||||
|
||||
|
|
|
@ -84,7 +84,8 @@ FT_BEGIN_HEADER
|
|||
/* <Return> */
|
||||
/* List node. NULL if it wasn't found. */
|
||||
/* */
|
||||
FT_EXPORT( FT_ListNode ) FT_List_Find( FT_List list,
|
||||
FT_EXPORT( FT_ListNode )
|
||||
FT_List_Find( FT_List list,
|
||||
void* data );
|
||||
|
||||
|
||||
|
@ -100,7 +101,8 @@ FT_BEGIN_HEADER
|
|||
/* list :: A pointer to the parent list. */
|
||||
/* node :: The node to append. */
|
||||
/* */
|
||||
FT_EXPORT( void ) FT_List_Add( FT_List list,
|
||||
FT_EXPORT( void )
|
||||
FT_List_Add( FT_List list,
|
||||
FT_ListNode node );
|
||||
|
||||
|
||||
|
@ -116,7 +118,8 @@ FT_BEGIN_HEADER
|
|||
/* list :: A pointer to parent list. */
|
||||
/* node :: The node to insert. */
|
||||
/* */
|
||||
FT_EXPORT( void ) FT_List_Insert( FT_List list,
|
||||
FT_EXPORT( void )
|
||||
FT_List_Insert( FT_List list,
|
||||
FT_ListNode node );
|
||||
|
||||
|
||||
|
@ -135,7 +138,8 @@ FT_BEGIN_HEADER
|
|||
/* <InOut> */
|
||||
/* list :: A pointer to the parent list. */
|
||||
/* */
|
||||
FT_EXPORT( void ) FT_List_Remove( FT_List list,
|
||||
FT_EXPORT( void )
|
||||
FT_List_Remove( FT_List list,
|
||||
FT_ListNode node );
|
||||
|
||||
|
||||
|
@ -152,7 +156,8 @@ FT_BEGIN_HEADER
|
|||
/* list :: A pointer to the parent list. */
|
||||
/* node :: The node to move. */
|
||||
/* */
|
||||
FT_EXPORT( void ) FT_List_Up( FT_List list,
|
||||
FT_EXPORT( void )
|
||||
FT_List_Up( FT_List list,
|
||||
FT_ListNode node );
|
||||
|
||||
|
||||
|
@ -171,7 +176,8 @@ FT_BEGIN_HEADER
|
|||
/* user :: A typeless pointer passed to FT_List_Iterate(). */
|
||||
/* Can be used to point to the iteration's state. */
|
||||
/* */
|
||||
typedef FT_Error (*FT_List_Iterator)( FT_ListNode node,
|
||||
typedef FT_Error
|
||||
(*FT_List_Iterator)( FT_ListNode node,
|
||||
void* user );
|
||||
|
||||
|
||||
|
@ -195,7 +201,8 @@ FT_BEGIN_HEADER
|
|||
/* <Return> */
|
||||
/* The result (a FreeType error code) of the last iterator call. */
|
||||
/* */
|
||||
FT_EXPORT( FT_Error ) FT_List_Iterate( FT_List list,
|
||||
FT_EXPORT( FT_Error )
|
||||
FT_List_Iterate( FT_List list,
|
||||
FT_List_Iterator iterator,
|
||||
void* user );
|
||||
|
||||
|
@ -218,7 +225,8 @@ FT_BEGIN_HEADER
|
|||
/* user :: A typeless pointer passed to FT_List_Iterate(). It can */
|
||||
/* be used to point to the iteration's state. */
|
||||
/* */
|
||||
typedef void (*FT_List_Destructor)( FT_Memory memory,
|
||||
typedef void
|
||||
(*FT_List_Destructor)( FT_Memory memory,
|
||||
void* data,
|
||||
void* user );
|
||||
|
||||
|
@ -242,7 +250,8 @@ FT_BEGIN_HEADER
|
|||
/* user :: A user-supplied field which is passed as the last */
|
||||
/* argument to the destructor. */
|
||||
/* */
|
||||
FT_EXPORT( void ) FT_List_Finalize( FT_List list,
|
||||
FT_EXPORT( void )
|
||||
FT_List_Finalize( FT_List list,
|
||||
FT_List_Destructor destroy,
|
||||
FT_Memory memory,
|
||||
void* user );
|
||||
|
|
|
@ -85,7 +85,8 @@ FT_BEGIN_HEADER
|
|||
/* error = FT_New_Face_From_FOND( library, fond, 0, &face ); */
|
||||
/* } */
|
||||
/* */
|
||||
FT_EXPORT( FT_Error ) FT_New_Face_From_FOND( FT_Library library,
|
||||
FT_EXPORT( FT_Error )
|
||||
FT_New_Face_From_FOND( FT_Library library,
|
||||
Handle fond,
|
||||
FT_Long face_index,
|
||||
FT_Face *aface );
|
||||
|
|
|
@ -100,14 +100,17 @@ FT_BEGIN_HEADER
|
|||
|
||||
/* */
|
||||
|
||||
typedef FT_Error (*FT_Get_MM_Func)( FT_Face face,
|
||||
typedef FT_Error
|
||||
(*FT_Get_MM_Func)( FT_Face face,
|
||||
FT_Multi_Master* master );
|
||||
|
||||
typedef FT_Error (*FT_Set_MM_Design_Func)( FT_Face face,
|
||||
typedef FT_Error
|
||||
(*FT_Set_MM_Design_Func)( FT_Face face,
|
||||
FT_UInt num_coords,
|
||||
FT_Long* coords );
|
||||
|
||||
typedef FT_Error (*FT_Set_MM_Blend_Func)( FT_Face face,
|
||||
typedef FT_Error
|
||||
(*FT_Set_MM_Blend_Func)( FT_Face face,
|
||||
FT_UInt num_coords,
|
||||
FT_Long* coords );
|
||||
|
||||
|
@ -129,7 +132,8 @@ FT_BEGIN_HEADER
|
|||
/* <Return> */
|
||||
/* FreeType error code. 0 means success. */
|
||||
/* */
|
||||
FT_EXPORT( FT_Error ) FT_Get_Multi_Master( FT_Face face,
|
||||
FT_EXPORT( FT_Error )
|
||||
FT_Get_Multi_Master( FT_Face face,
|
||||
FT_Multi_Master *amaster );
|
||||
|
||||
|
||||
|
@ -154,8 +158,8 @@ FT_BEGIN_HEADER
|
|||
/* <Return> */
|
||||
/* FreeType error code. 0 means success. */
|
||||
/* */
|
||||
FT_EXPORT( FT_Error ) FT_Set_MM_Design_Coordinates(
|
||||
FT_Face face,
|
||||
FT_EXPORT( FT_Error )
|
||||
FT_Set_MM_Design_Coordinates( FT_Face face,
|
||||
FT_UInt num_coords,
|
||||
FT_Long* coords );
|
||||
|
||||
|
@ -182,8 +186,8 @@ FT_BEGIN_HEADER
|
|||
/* <Return> */
|
||||
/* FreeType error code. 0 means success. */
|
||||
/* */
|
||||
FT_EXPORT( FT_Error ) FT_Set_MM_Blend_Coordinates(
|
||||
FT_Face face,
|
||||
FT_EXPORT( FT_Error )
|
||||
FT_Set_MM_Blend_Coordinates( FT_Face face,
|
||||
FT_UInt num_coords,
|
||||
FT_Fixed* coords );
|
||||
|
||||
|
|
|
@ -63,13 +63,17 @@ FT_BEGIN_HEADER
|
|||
} FT_Module_Flags;
|
||||
|
||||
|
||||
typedef void (*FT_Module_Interface)( void );
|
||||
typedef void
|
||||
(*FT_Module_Interface)( void );
|
||||
|
||||
typedef FT_Error (*FT_Module_Constructor)( FT_Module module );
|
||||
typedef FT_Error
|
||||
(*FT_Module_Constructor)( FT_Module module );
|
||||
|
||||
typedef void (*FT_Module_Destructor)( FT_Module module );
|
||||
typedef void
|
||||
(*FT_Module_Destructor)( FT_Module module );
|
||||
|
||||
typedef FT_Module_Interface (*FT_Module_Requester)( FT_Module module,
|
||||
typedef FT_Module_Interface
|
||||
(*FT_Module_Requester)( FT_Module module,
|
||||
const char* name );
|
||||
|
||||
|
||||
|
@ -142,7 +146,8 @@ FT_BEGIN_HEADER
|
|||
/* An error will be returned if a module already exists by that name, */
|
||||
/* or if the module requires a version of FreeType that is too great. */
|
||||
/* */
|
||||
FT_EXPORT( FT_Error ) FT_Add_Module( FT_Library library,
|
||||
FT_EXPORT( FT_Error )
|
||||
FT_Add_Module( FT_Library library,
|
||||
const FT_Module_Class* clazz );
|
||||
|
||||
|
||||
|
@ -166,7 +171,8 @@ FT_BEGIN_HEADER
|
|||
/* You should better be familiar with FreeType internals to know */
|
||||
/* which module to look for :-) */
|
||||
/* */
|
||||
FT_EXPORT( FT_Module ) FT_Get_Module( FT_Library library,
|
||||
FT_EXPORT( FT_Module )
|
||||
FT_Get_Module( FT_Library library,
|
||||
const char* module_name );
|
||||
|
||||
|
||||
|
@ -190,7 +196,8 @@ FT_BEGIN_HEADER
|
|||
/* <Note> */
|
||||
/* The module object is destroyed by the function in case of success. */
|
||||
/* */
|
||||
FT_EXPORT( FT_Error ) FT_Remove_Module( FT_Library library,
|
||||
FT_EXPORT( FT_Error )
|
||||
FT_Remove_Module( FT_Library library,
|
||||
FT_Module module );
|
||||
|
||||
|
||||
|
@ -213,7 +220,8 @@ FT_BEGIN_HEADER
|
|||
/* <Return> */
|
||||
/* FreeType error code. 0 means success. */
|
||||
/* */
|
||||
FT_EXPORT( FT_Error ) FT_New_Library( FT_Memory memory,
|
||||
FT_EXPORT( FT_Error )
|
||||
FT_New_Library( FT_Memory memory,
|
||||
FT_Library *alibrary );
|
||||
|
||||
|
||||
|
@ -232,11 +240,13 @@ FT_BEGIN_HEADER
|
|||
/* <Return> */
|
||||
/* FreeType error code. 0 means success. */
|
||||
/* */
|
||||
FT_EXPORT( FT_Error ) FT_Done_Library( FT_Library library );
|
||||
FT_EXPORT( FT_Error )
|
||||
FT_Done_Library( FT_Library library );
|
||||
|
||||
|
||||
|
||||
typedef void (*FT_DebugHook_Func)( void* arg );
|
||||
typedef void
|
||||
(*FT_DebugHook_Func)( void* arg );
|
||||
|
||||
|
||||
/*************************************************************************/
|
||||
|
@ -262,7 +272,8 @@ FT_BEGIN_HEADER
|
|||
/* Currently, four debug hook slots are available, but only two (for */
|
||||
/* the TrueType and the Type 1 interpreter) are defined. */
|
||||
/* */
|
||||
FT_EXPORT( void ) FT_Set_Debug_Hook( FT_Library library,
|
||||
FT_EXPORT( void )
|
||||
FT_Set_Debug_Hook( FT_Library library,
|
||||
FT_UInt hook_index,
|
||||
FT_DebugHook_Func debug_hook );
|
||||
|
||||
|
@ -281,7 +292,8 @@ FT_BEGIN_HEADER
|
|||
/* <InOut> */
|
||||
/* library :: A handle to a new library object. */
|
||||
/* */
|
||||
FT_EXPORT( void ) FT_Add_Default_Modules( FT_Library library );
|
||||
FT_EXPORT( void )
|
||||
FT_Add_Default_Modules( FT_Library library );
|
||||
|
||||
|
||||
/* */
|
||||
|
|
|
@ -95,8 +95,8 @@ FT_BEGIN_HEADER
|
|||
/* <Return> */
|
||||
/* FreeType error code. 0 means sucess. */
|
||||
/* */
|
||||
FT_EXPORT( FT_Error ) FT_Outline_Decompose(
|
||||
FT_Outline* outline,
|
||||
FT_EXPORT( FT_Error )
|
||||
FT_Outline_Decompose( FT_Outline* outline,
|
||||
const FT_Outline_Funcs* interface,
|
||||
void* user );
|
||||
|
||||
|
@ -130,14 +130,15 @@ FT_BEGIN_HEADER
|
|||
/* The reason why this function takes a `library' parameter is simply */
|
||||
/* to use the library's memory allocator. */
|
||||
/* */
|
||||
FT_EXPORT( FT_Error ) FT_Outline_New( FT_Library library,
|
||||
FT_EXPORT( FT_Error )
|
||||
FT_Outline_New( FT_Library library,
|
||||
FT_UInt numPoints,
|
||||
FT_Int numContours,
|
||||
FT_Outline *anoutline );
|
||||
|
||||
|
||||
FT_EXPORT( FT_Error ) FT_Outline_New_Internal(
|
||||
FT_Memory memory,
|
||||
FT_EXPORT( FT_Error )
|
||||
FT_Outline_New_Internal( FT_Memory memory,
|
||||
FT_UInt numPoints,
|
||||
FT_Int numContours,
|
||||
FT_Outline *anoutline );
|
||||
|
@ -167,11 +168,13 @@ FT_BEGIN_HEADER
|
|||
/* The reason why this function takes an `library' parameter is */
|
||||
/* simply to use FT_Free(). */
|
||||
/* */
|
||||
FT_EXPORT( FT_Error ) FT_Outline_Done( FT_Library library,
|
||||
FT_EXPORT( FT_Error )
|
||||
FT_Outline_Done( FT_Library library,
|
||||
FT_Outline* outline );
|
||||
|
||||
|
||||
FT_EXPORT( FT_Error ) FT_Outline_Done_Internal( FT_Memory memory,
|
||||
FT_EXPORT( FT_Error )
|
||||
FT_Outline_Done_Internal( FT_Memory memory,
|
||||
FT_Outline* outline );
|
||||
|
||||
|
||||
|
@ -198,7 +201,8 @@ FT_BEGIN_HEADER
|
|||
/* <Output> */
|
||||
/* acbox :: The outline's control box. */
|
||||
/* */
|
||||
FT_EXPORT( void ) FT_Outline_Get_CBox( FT_Outline* outline,
|
||||
FT_EXPORT( void )
|
||||
FT_Outline_Get_CBox( FT_Outline* outline,
|
||||
FT_BBox *acbox );
|
||||
|
||||
|
||||
|
@ -218,7 +222,8 @@ FT_BEGIN_HEADER
|
|||
/* */
|
||||
/* yOffset :: The vertical offset. */
|
||||
/* */
|
||||
FT_EXPORT( void ) FT_Outline_Translate( FT_Outline* outline,
|
||||
FT_EXPORT( void )
|
||||
FT_Outline_Translate( FT_Outline* outline,
|
||||
FT_Pos xOffset,
|
||||
FT_Pos yOffset );
|
||||
|
||||
|
@ -242,7 +247,8 @@ FT_BEGIN_HEADER
|
|||
/* <Return> */
|
||||
/* FreeType error code. 0 means success. */
|
||||
/* */
|
||||
FT_EXPORT( FT_Error ) FT_Outline_Copy( FT_Outline* source,
|
||||
FT_EXPORT( FT_Error )
|
||||
FT_Outline_Copy( FT_Outline* source,
|
||||
FT_Outline *target );
|
||||
|
||||
|
||||
|
@ -265,7 +271,8 @@ FT_BEGIN_HEADER
|
|||
/* You can use FT_Outline_Translate() if you need to translate the */
|
||||
/* outline's points. */
|
||||
/* */
|
||||
FT_EXPORT( void ) FT_Outline_Transform( FT_Outline* outline,
|
||||
FT_EXPORT( void )
|
||||
FT_Outline_Transform( FT_Outline* outline,
|
||||
FT_Matrix* matrix );
|
||||
|
||||
|
||||
|
@ -288,7 +295,8 @@ FT_BEGIN_HEADER
|
|||
/* It shouldn't be used by a normal client application, unless it */
|
||||
/* knows what it is doing. */
|
||||
/* */
|
||||
FT_EXPORT( void ) FT_Outline_Reverse( FT_Outline* outline );
|
||||
FT_EXPORT( void )
|
||||
FT_Outline_Reverse( FT_Outline* outline );
|
||||
|
||||
|
||||
/*************************************************************************/
|
||||
|
@ -317,7 +325,8 @@ FT_BEGIN_HEADER
|
|||
/* */
|
||||
/* It will use the raster correponding to the default glyph format. */
|
||||
/* */
|
||||
FT_EXPORT( FT_Error ) FT_Outline_Get_Bitmap( FT_Library library,
|
||||
FT_EXPORT( FT_Error )
|
||||
FT_Outline_Get_Bitmap( FT_Library library,
|
||||
FT_Outline* outline,
|
||||
FT_Bitmap *abitmap );
|
||||
|
||||
|
@ -353,7 +362,8 @@ FT_BEGIN_HEADER
|
|||
/* converter is called, which means that the value you give to it is */
|
||||
/* actually ignored. */
|
||||
/* */
|
||||
FT_EXPORT( FT_Error ) FT_Outline_Render( FT_Library library,
|
||||
FT_EXPORT( FT_Error )
|
||||
FT_Outline_Render( FT_Library library,
|
||||
FT_Outline* outline,
|
||||
FT_Raster_Params* params );
|
||||
|
||||
|
|
|
@ -37,25 +37,32 @@ FT_BEGIN_HEADER
|
|||
|
||||
|
||||
/* create a new glyph object */
|
||||
typedef FT_Error (*FT_Glyph_Init_Func) ( FT_Glyph glyph,
|
||||
typedef FT_Error
|
||||
(*FT_Glyph_Init_Func)( FT_Glyph glyph,
|
||||
FT_GlyphSlot slot );
|
||||
|
||||
/* destroys a given glyph object */
|
||||
typedef void (*FT_Glyph_Done_Func) ( FT_Glyph glyph );
|
||||
typedef void
|
||||
(*FT_Glyph_Done_Func)( FT_Glyph glyph );
|
||||
|
||||
typedef void (*FT_Glyph_Transform_Func)( FT_Glyph glyph,
|
||||
typedef void
|
||||
(*FT_Glyph_Transform_Func)( FT_Glyph glyph,
|
||||
FT_Matrix* matrix,
|
||||
FT_Vector* delta );
|
||||
|
||||
typedef void (*FT_Glyph_BBox_Func) ( FT_Glyph glyph,
|
||||
typedef void
|
||||
(*FT_Glyph_BBox_Func)( FT_Glyph glyph,
|
||||
FT_BBox* abbox );
|
||||
|
||||
typedef FT_Error (*FT_Glyph_Copy_Func) ( FT_Glyph source,
|
||||
typedef FT_Error
|
||||
(*FT_Glyph_Copy_Func)( FT_Glyph source,
|
||||
FT_Glyph target );
|
||||
|
||||
typedef FT_Error (*FT_Glyph_Prepare_Func) ( FT_Glyph glyph,
|
||||
typedef FT_Error
|
||||
(*FT_Glyph_Prepare_Func)( FT_Glyph glyph,
|
||||
FT_GlyphSlot slot );
|
||||
|
||||
|
||||
struct FT_Glyph_Class_
|
||||
{
|
||||
FT_UInt glyph_size;
|
||||
|
@ -69,21 +76,25 @@ FT_BEGIN_HEADER
|
|||
};
|
||||
|
||||
|
||||
typedef FT_Error (*FTRenderer_render) ( FT_Renderer renderer,
|
||||
typedef FT_Error
|
||||
(*FTRenderer_render)( FT_Renderer renderer,
|
||||
FT_GlyphSlot slot,
|
||||
FT_UInt mode,
|
||||
FT_Vector* origin );
|
||||
|
||||
typedef FT_Error (*FTRenderer_transform)( FT_Renderer renderer,
|
||||
typedef FT_Error
|
||||
(*FTRenderer_transform)( FT_Renderer renderer,
|
||||
FT_GlyphSlot slot,
|
||||
FT_Matrix* matrix,
|
||||
FT_Vector* delta );
|
||||
|
||||
typedef void (*FTRenderer_getCBox) ( FT_Renderer renderer,
|
||||
typedef void
|
||||
(*FTRenderer_getCBox)( FT_Renderer renderer,
|
||||
FT_GlyphSlot slot,
|
||||
FT_BBox* cbox );
|
||||
|
||||
typedef FT_Error (*FTRenderer_setMode) ( FT_Renderer renderer,
|
||||
typedef FT_Error
|
||||
(*FTRenderer_setMode)( FT_Renderer renderer,
|
||||
FT_ULong mode_tag,
|
||||
FT_Pointer mode_ptr );
|
||||
|
||||
|
@ -152,7 +163,8 @@ FT_BEGIN_HEADER
|
|||
/* To add a new renderer, simply use FT_Add_Module(). To retrieve a */
|
||||
/* renderer by its name, use FT_Get_Module(). */
|
||||
/* */
|
||||
FT_EXPORT( FT_Renderer ) FT_Get_Renderer( FT_Library library,
|
||||
FT_EXPORT( FT_Renderer )
|
||||
FT_Get_Renderer( FT_Library library,
|
||||
FT_Glyph_Format format );
|
||||
|
||||
|
||||
|
@ -183,7 +195,8 @@ FT_BEGIN_HEADER
|
|||
/* */
|
||||
/* This doesn't change the current renderer for other formats. */
|
||||
/* */
|
||||
FT_EXPORT( FT_Error ) FT_Set_Renderer( FT_Library library,
|
||||
FT_EXPORT( FT_Error )
|
||||
FT_Set_Renderer( FT_Library library,
|
||||
FT_Renderer renderer,
|
||||
FT_UInt num_params,
|
||||
FT_Parameter* parameters );
|
||||
|
|
|
@ -113,7 +113,8 @@ FT_BEGIN_HEADER
|
|||
/* <Return> */
|
||||
/* The number of strings in the `name' table. */
|
||||
/* */
|
||||
FT_EXPORT( FT_UInt ) FT_Get_Sfnt_Name_Count( FT_Face face );
|
||||
FT_EXPORT( FT_UInt )
|
||||
FT_Get_Sfnt_Name_Count( FT_Face face );
|
||||
|
||||
|
||||
/*************************************************************************/
|
||||
|
@ -143,7 +144,8 @@ FT_BEGIN_HEADER
|
|||
/* `name' table entries, then do a loop until you get the right */
|
||||
/* platform, encoding, and name ID. */
|
||||
/* */
|
||||
FT_EXPORT( FT_Error ) FT_Get_Sfnt_Name( FT_Face face,
|
||||
FT_EXPORT( FT_Error )
|
||||
FT_Get_Sfnt_Name( FT_Face face,
|
||||
FT_UInt index,
|
||||
FT_SfntName *aname );
|
||||
|
||||
|
|
|
@ -48,11 +48,13 @@ FT_BEGIN_HEADER
|
|||
/* This code is completely experimental -- use with care! */
|
||||
/* It will probably be completely rewritten in the future */
|
||||
/* or even integrated into the library. */
|
||||
FT_EXPORT( FT_Error ) FT_Outline_Embolden( FT_GlyphSlot original,
|
||||
FT_EXPORT( FT_Error )
|
||||
FT_Outline_Embolden( FT_GlyphSlot original,
|
||||
FT_Outline* outline,
|
||||
FT_Pos* advance );
|
||||
|
||||
FT_EXPORT( FT_Error ) FT_Outline_Oblique( FT_GlyphSlot original,
|
||||
FT_EXPORT( FT_Error )
|
||||
FT_Outline_Oblique( FT_GlyphSlot original,
|
||||
FT_Outline* outline,
|
||||
FT_Pos* advance );
|
||||
|
||||
|
|
|
@ -80,7 +80,8 @@ FT_BEGIN_HEADER
|
|||
/* @return: */
|
||||
/* Address of new memory block. 0 in case of failure. */
|
||||
/* */
|
||||
typedef void* (*FT_Alloc_Func)( FT_Memory memory,
|
||||
typedef void*
|
||||
(*FT_Alloc_Func)( FT_Memory memory,
|
||||
long size );
|
||||
|
||||
|
||||
|
@ -97,7 +98,8 @@ FT_BEGIN_HEADER
|
|||
/* */
|
||||
/* block :: The address of the target memory block. */
|
||||
/* */
|
||||
typedef void (*FT_Free_Func)( FT_Memory memory,
|
||||
typedef void
|
||||
(*FT_Free_Func)( FT_Memory memory,
|
||||
void* block );
|
||||
|
||||
|
||||
|
@ -124,7 +126,8 @@ FT_BEGIN_HEADER
|
|||
/* @note: */
|
||||
/* In case of error, the old block must still be available. */
|
||||
/* */
|
||||
typedef void* (*FT_Realloc_Func)( FT_Memory memory,
|
||||
typedef void*
|
||||
(*FT_Realloc_Func)( FT_Memory memory,
|
||||
long cur_size,
|
||||
long new_size,
|
||||
void* block );
|
||||
|
@ -215,7 +218,8 @@ FT_BEGIN_HEADER
|
|||
/* This function might be called to perform a seek or skip operation */
|
||||
/* with a `count' of 0. */
|
||||
/* */
|
||||
typedef unsigned long (*FT_Stream_IO)( FT_Stream stream,
|
||||
typedef unsigned long
|
||||
(*FT_Stream_IO)( FT_Stream stream,
|
||||
unsigned long offset,
|
||||
unsigned char* buffer,
|
||||
unsigned long count );
|
||||
|
@ -232,7 +236,8 @@ FT_BEGIN_HEADER
|
|||
/* @input: */
|
||||
/* stream :: A handle to the target stream. */
|
||||
/* */
|
||||
typedef void (*FT_Stream_Close)( FT_Stream stream );
|
||||
typedef void
|
||||
(*FT_Stream_Close)( FT_Stream stream );
|
||||
|
||||
|
||||
/*************************************************************************/
|
||||
|
|
|
@ -25,233 +25,249 @@
|
|||
FT_BEGIN_HEADER
|
||||
|
||||
|
||||
/***************************************************************************
|
||||
*
|
||||
* @section:
|
||||
* computations
|
||||
*
|
||||
*/
|
||||
/*************************************************************************/
|
||||
/* */
|
||||
/* @section: */
|
||||
/* computations */
|
||||
/* */
|
||||
/*************************************************************************/
|
||||
|
||||
|
||||
/***************************************************************************
|
||||
*
|
||||
* @type:
|
||||
* FT_Angle
|
||||
*
|
||||
* @description:
|
||||
* This type is used to model angle values in FreeType. Note that
|
||||
* the angle is a 16.16 fixed float value expressed in degrees.
|
||||
*/
|
||||
/*************************************************************************/
|
||||
/* */
|
||||
/* @type: */
|
||||
/* FT_Angle */
|
||||
/* */
|
||||
/* @description: */
|
||||
/* This type is used to model angle values in FreeType. Note that */
|
||||
/* the angle is a 16.16 fixed float value expressed in degrees. */
|
||||
/* */
|
||||
typedef FT_Fixed FT_Angle;
|
||||
|
||||
|
||||
/***************************************************************************
|
||||
*
|
||||
* @macro:
|
||||
* FT_ANGLE_PI
|
||||
*
|
||||
* @description:
|
||||
* The angle pi expressed in @FT_Angle units.
|
||||
*/
|
||||
/*************************************************************************/
|
||||
/* */
|
||||
/* @macro: */
|
||||
/* FT_ANGLE_PI */
|
||||
/* */
|
||||
/* @description: */
|
||||
/* The angle pi expressed in @FT_Angle units. */
|
||||
/* */
|
||||
#define FT_ANGLE_PI ( 180L << 16 )
|
||||
|
||||
|
||||
/***************************************************************************
|
||||
*
|
||||
* @macro:
|
||||
* FT_ANGLE_2PI
|
||||
*
|
||||
* @description:
|
||||
* The angle 2*pi expressed in @FT_Angle units.
|
||||
*/
|
||||
/*************************************************************************/
|
||||
/* */
|
||||
/* @macro: */
|
||||
/* FT_ANGLE_2PI */
|
||||
/* */
|
||||
/* @description: */
|
||||
/* The angle 2*pi expressed in @FT_Angle units. */
|
||||
/* */
|
||||
#define FT_ANGLE_2PI ( FT_ANGLE_PI * 2 )
|
||||
|
||||
|
||||
/***************************************************************************
|
||||
*
|
||||
* @macro:
|
||||
* FT_ANGLE_PI2
|
||||
*
|
||||
* @description:
|
||||
* The angle pi/2 expressed in @FT_Angle units.
|
||||
*/
|
||||
/*************************************************************************/
|
||||
/* */
|
||||
/* @macro: */
|
||||
/* FT_ANGLE_PI2 */
|
||||
/* */
|
||||
/* @description: */
|
||||
/* The angle pi/2 expressed in @FT_Angle units. */
|
||||
/* */
|
||||
#define FT_ANGLE_PI2 ( FT_ANGLE_PI / 2 )
|
||||
|
||||
|
||||
/***************************************************************************
|
||||
*
|
||||
* @macro:
|
||||
* FT_ANGLE_PI4
|
||||
*
|
||||
* @description:
|
||||
* The angle pi/4 expressed in @FT_Angle units.
|
||||
*/
|
||||
/*************************************************************************/
|
||||
/* */
|
||||
/* @macro: */
|
||||
/* FT_ANGLE_PI4 */
|
||||
/* */
|
||||
/* @description: */
|
||||
/* The angle pi/4 expressed in @FT_Angle units. */
|
||||
/* */
|
||||
#define FT_ANGLE_PI4 ( FT_ANGLE_PI / 4 )
|
||||
|
||||
|
||||
/***************************************************************************
|
||||
*
|
||||
* @function:
|
||||
* FT_Sin
|
||||
*
|
||||
* @description:
|
||||
* Return the sinus of a given angle in fixed point format.
|
||||
*
|
||||
* @input:
|
||||
* angle :: The input angle.
|
||||
*
|
||||
* @return:
|
||||
* The sinus value.
|
||||
*
|
||||
* @note:
|
||||
* If you need both the sinus and cosinus for a given angle, use the
|
||||
* function @FT_Vector_Unit.
|
||||
*/
|
||||
FT_EXPORT( FT_Fixed ) FT_Sin( FT_Angle angle );
|
||||
/*************************************************************************/
|
||||
/* */
|
||||
/* @function: */
|
||||
/* FT_Sin */
|
||||
/* */
|
||||
/* @description: */
|
||||
/* Return the sinus of a given angle in fixed point format. */
|
||||
/* */
|
||||
/* @input: */
|
||||
/* angle :: The input angle. */
|
||||
/* */
|
||||
/* @return: */
|
||||
/* The sinus value. */
|
||||
/* */
|
||||
/* @note: */
|
||||
/* If you need both the sinus and cosinus for a given angle, use the */
|
||||
/* function @FT_Vector_Unit. */
|
||||
/* */
|
||||
FT_EXPORT( FT_Fixed )
|
||||
FT_Sin( FT_Angle angle );
|
||||
|
||||
|
||||
/***************************************************************************
|
||||
*
|
||||
* @function:
|
||||
* FT_Cos
|
||||
*
|
||||
* @description:
|
||||
* Return the cosinus of a given angle in fixed point format.
|
||||
*
|
||||
* @input:
|
||||
* angle :: The input angle.
|
||||
*
|
||||
* @return:
|
||||
* The cosinus value.
|
||||
*
|
||||
* @note:
|
||||
* If you need both the sinus and cosinus for a given angle, use the
|
||||
* function @FT_Vector_Unit.
|
||||
*/
|
||||
FT_EXPORT( FT_Fixed ) FT_Cos( FT_Angle angle );
|
||||
/*************************************************************************/
|
||||
/* */
|
||||
/* @function: */
|
||||
/* FT_Cos */
|
||||
/* */
|
||||
/* @description: */
|
||||
/* Return the cosinus of a given angle in fixed point format. */
|
||||
/* */
|
||||
/* @input: */
|
||||
/* angle :: The input angle. */
|
||||
/* */
|
||||
/* @return: */
|
||||
/* The cosinus value. */
|
||||
/* */
|
||||
/* @note: */
|
||||
/* If you need both the sinus and cosinus for a given angle, use the */
|
||||
/* function @FT_Vector_Unit. */
|
||||
/* */
|
||||
FT_EXPORT( FT_Fixed )
|
||||
FT_Cos( FT_Angle angle );
|
||||
|
||||
|
||||
/***************************************************************************
|
||||
*
|
||||
* @function:
|
||||
* FT_Tan
|
||||
*
|
||||
* @description:
|
||||
* Return the tangent of a given angle in fixed point format.
|
||||
*
|
||||
* @input:
|
||||
* angle :: The input angle.
|
||||
*
|
||||
* @return:
|
||||
* The tangent value.
|
||||
*/
|
||||
FT_EXPORT( FT_Fixed ) FT_Tan( FT_Angle angle );
|
||||
/*************************************************************************/
|
||||
/* */
|
||||
/* @function: */
|
||||
/* FT_Tan */
|
||||
/* */
|
||||
/* @description: */
|
||||
/* Return the tangent of a given angle in fixed point format. */
|
||||
/* */
|
||||
/* @input: */
|
||||
/* angle :: The input angle. */
|
||||
/* */
|
||||
/* @return: */
|
||||
/* The tangent value. */
|
||||
/* */
|
||||
FT_EXPORT( FT_Fixed )
|
||||
FT_Tan( FT_Angle angle );
|
||||
|
||||
|
||||
/***************************************************************************
|
||||
*
|
||||
* @function:
|
||||
* FT_Atan2
|
||||
*
|
||||
* @description:
|
||||
* Return the arc-tangent corresponding to a given vector (x,y) in
|
||||
* the 2d plane.
|
||||
*
|
||||
* @input:
|
||||
* x :: The horizontal vector coordinate.
|
||||
* y :: The vertical vector coordinate.
|
||||
*
|
||||
* @return:
|
||||
* The arc-tangent value (i.e. angle).
|
||||
*/
|
||||
FT_EXPORT( FT_Angle ) FT_Atan2( FT_Fixed x, FT_Fixed y );
|
||||
/*************************************************************************/
|
||||
/* */
|
||||
/* @function: */
|
||||
/* FT_Atan2 */
|
||||
/* */
|
||||
/* @description: */
|
||||
/* Return the arc-tangent corresponding to a given vector (x,y) in */
|
||||
/* the 2d plane. */
|
||||
/* */
|
||||
/* @input: */
|
||||
/* x :: The horizontal vector coordinate. */
|
||||
/* */
|
||||
/* y :: The vertical vector coordinate. */
|
||||
/* */
|
||||
/* @return: */
|
||||
/* The arc-tangent value (i.e. angle). */
|
||||
/* */
|
||||
FT_EXPORT( FT_Angle )
|
||||
FT_Atan2( FT_Fixed x,
|
||||
FT_Fixed y );
|
||||
|
||||
|
||||
/***************************************************************************
|
||||
*
|
||||
* @function:
|
||||
* FT_Vector_Unit
|
||||
*
|
||||
* @description:
|
||||
* Return the unit vector corresponding to a given angle. After the call,
|
||||
* the value of "vec.x" will be "sin(theta)", and the value of "vec.y"
|
||||
* will be "cos(angle)".
|
||||
*
|
||||
* This function is useful to retrieve both the sinus and cosinus of a
|
||||
* given angle quickly.
|
||||
*
|
||||
* @input:
|
||||
* vec :: The address of target vector.
|
||||
* angle :: The address of angle.
|
||||
*/
|
||||
FT_EXPORT( void ) FT_Vector_Unit( FT_Vector* vec,
|
||||
/*************************************************************************/
|
||||
/* */
|
||||
/* @function: */
|
||||
/* FT_Vector_Unit */
|
||||
/* */
|
||||
/* @description: */
|
||||
/* Return the unit vector corresponding to a given angle. After the */
|
||||
/* call, the value of `vec.x' will be `sin(angle)', and the value of */
|
||||
/* `vec.y' will be `cos(angle)'. */
|
||||
/* */
|
||||
/* This function is useful to retrieve both the sinus and cosinus of */
|
||||
/* a given angle quickly. */
|
||||
/* */
|
||||
/* @output: */
|
||||
/* vec :: The address of target vector. */
|
||||
/* */
|
||||
/* @input: */
|
||||
/* angle :: The address of angle. */
|
||||
/* */
|
||||
FT_EXPORT( void )
|
||||
FT_Vector_Unit( FT_Vector* vec,
|
||||
FT_Angle angle );
|
||||
|
||||
|
||||
/***************************************************************************
|
||||
*
|
||||
* @function:
|
||||
* FT_Vector_Rotate
|
||||
*
|
||||
* @description:
|
||||
* Rotate a vector by a given angle.
|
||||
*
|
||||
* @input:
|
||||
* vec :: The address of target vector.
|
||||
* angle :: The address of angle.
|
||||
*/
|
||||
FT_EXPORT( void ) FT_Vector_Rotate( FT_Vector* vec,
|
||||
/*************************************************************************/
|
||||
/* */
|
||||
/* @function: */
|
||||
/* FT_Vector_Rotate */
|
||||
/* */
|
||||
/* @description: */
|
||||
/* Rotate a vector by a given angle. */
|
||||
/* */
|
||||
/* @inout: */
|
||||
/* vec :: The address of target vector. */
|
||||
/* */
|
||||
/* @input: */
|
||||
/* angle :: The address of angle. */
|
||||
/* */
|
||||
FT_EXPORT( void )
|
||||
FT_Vector_Rotate( FT_Vector* vec,
|
||||
FT_Angle angle );
|
||||
|
||||
|
||||
/***************************************************************************
|
||||
*
|
||||
* @function:
|
||||
* FT_Vector_Length
|
||||
*
|
||||
* @description:
|
||||
* Return the length of a given vector.
|
||||
*
|
||||
* @input:
|
||||
* vec :: The address of target vector.
|
||||
*
|
||||
* @return:
|
||||
* The vector length, expressed in the same units that the original
|
||||
* vector coordinates.
|
||||
*/
|
||||
FT_EXPORT( FT_Fixed ) FT_Vector_Length( FT_Vector* vec );
|
||||
/*************************************************************************/
|
||||
/* */
|
||||
/* @function: */
|
||||
/* FT_Vector_Length */
|
||||
/* */
|
||||
/* @description: */
|
||||
/* Return the length of a given vector. */
|
||||
/* */
|
||||
/* @input: */
|
||||
/* vec :: The address of target vector. */
|
||||
/* */
|
||||
/* @return: */
|
||||
/* The vector length, expressed in the same units that the original */
|
||||
/* vector coordinates. */
|
||||
/* */
|
||||
FT_EXPORT( FT_Fixed )
|
||||
FT_Vector_Length( FT_Vector* vec );
|
||||
|
||||
|
||||
/***************************************************************************
|
||||
*
|
||||
* @function:
|
||||
* FT_Vector_Normalize
|
||||
*
|
||||
* @description:
|
||||
* Normalize a given vector (i.e. compute the equivalent unit vector).
|
||||
*
|
||||
* @input:
|
||||
* vec :: The address of target vector.
|
||||
*/
|
||||
FT_EXPORT( void ) FT_Vector_Normalize( FT_Vector* vec );
|
||||
/*************************************************************************/
|
||||
/* */
|
||||
/* @function: */
|
||||
/* FT_Vector_Normalize */
|
||||
/* */
|
||||
/* @description: */
|
||||
/* Normalize a given vector (i.e. compute the equivalent unit */
|
||||
/* vector). */
|
||||
/* */
|
||||
/* @inout: */
|
||||
/* vec :: The address of target vector. */
|
||||
/* */
|
||||
FT_EXPORT( void )
|
||||
FT_Vector_Normalize( FT_Vector* vec );
|
||||
|
||||
|
||||
/***************************************************************************
|
||||
*
|
||||
* @function:
|
||||
* FT_Vector_Polarize
|
||||
*
|
||||
* @description:
|
||||
* Compute both the length and angle of a given vector.
|
||||
*
|
||||
* @input:
|
||||
* vec :: The address of source vector.
|
||||
*
|
||||
* @output:
|
||||
* length :: The vector length.
|
||||
* angle :: The vector angle.
|
||||
*/
|
||||
FT_EXPORT( void ) FT_Vector_Polarize( FT_Vector* vec,
|
||||
/*************************************************************************/
|
||||
/* */
|
||||
/* @function: */
|
||||
/* FT_Vector_Polarize */
|
||||
/* */
|
||||
/* @description: */
|
||||
/* Compute both the length and angle of a given vector. */
|
||||
/* */
|
||||
/* @input: */
|
||||
/* vec :: The address of source vector. */
|
||||
/* */
|
||||
/* @output: */
|
||||
/* length :: The vector length. */
|
||||
/* angle :: The vector angle. */
|
||||
/* */
|
||||
FT_EXPORT( void )
|
||||
FT_Vector_Polarize( FT_Vector* vec,
|
||||
FT_Fixed *length,
|
||||
FT_Angle *angle );
|
||||
/* */
|
||||
|
|
|
@ -193,7 +193,7 @@ FT_BEGIN_HEADER
|
|||
FT_UShort number_Of_HMetrics;
|
||||
|
||||
/* The following fields are not defined by the TrueType specification */
|
||||
/* but they're used to connect the metrics header to the relevant */
|
||||
/* but they are used to connect the metrics header to the relevant */
|
||||
/* `HMTX' table. */
|
||||
|
||||
void* long_metrics;
|
||||
|
@ -555,7 +555,8 @@ FT_BEGIN_HEADER
|
|||
|
||||
|
||||
/* internal use only */
|
||||
typedef void* (*FT_Get_Sfnt_Table_Func)( FT_Face face,
|
||||
typedef void*
|
||||
(*FT_Get_Sfnt_Table_Func)( FT_Face face,
|
||||
FT_Sfnt_Tag tag );
|
||||
|
||||
|
||||
|
@ -584,7 +585,8 @@ FT_BEGIN_HEADER
|
|||
/* by the sfnt/truetype/opentype drivers. See FT_Sfnt_Tag for a */
|
||||
/* list. */
|
||||
/* */
|
||||
FT_EXPORT( void* ) FT_Get_Sfnt_Table( FT_Face face,
|
||||
FT_EXPORT( void* )
|
||||
FT_Get_Sfnt_Table( FT_Face face,
|
||||
FT_Sfnt_Tag tag );
|
||||
|
||||
|
||||
|
|
|
@ -88,8 +88,8 @@
|
|||
/* */
|
||||
/* They can be implemented by format-specific interfaces. */
|
||||
/* */
|
||||
static
|
||||
FT_Error Get_Kerning( TT_Face face,
|
||||
static FT_Error
|
||||
Get_Kerning( TT_Face face,
|
||||
FT_UInt left_glyph,
|
||||
FT_UInt right_glyph,
|
||||
FT_Vector* kerning )
|
||||
|
@ -183,8 +183,8 @@
|
|||
/* <Return> */
|
||||
/* FreeType error code. 0 means success. */
|
||||
/* */
|
||||
static
|
||||
FT_Error Set_Char_Sizes( TT_Size size,
|
||||
static FT_Error
|
||||
Set_Char_Sizes( TT_Size size,
|
||||
FT_F26Dot6 char_width,
|
||||
FT_F26Dot6 char_height,
|
||||
FT_UInt horz_resolution,
|
||||
|
@ -246,8 +246,8 @@
|
|||
/* <Return> */
|
||||
/* FreeType error code. 0 means success. */
|
||||
/* */
|
||||
static
|
||||
FT_Error Set_Pixel_Sizes( TT_Size size,
|
||||
static FT_Error
|
||||
Set_Pixel_Sizes( TT_Size size,
|
||||
FT_UInt pixel_width,
|
||||
FT_UInt pixel_height )
|
||||
{
|
||||
|
@ -291,8 +291,8 @@
|
|||
/* <Return> */
|
||||
/* FreeType error code. 0 means success. */
|
||||
/* */
|
||||
static
|
||||
FT_Error Load_Glyph( TT_GlyphSlot slot,
|
||||
static FT_Error
|
||||
Load_Glyph( TT_GlyphSlot slot,
|
||||
TT_Size size,
|
||||
FT_UShort glyph_index,
|
||||
FT_UInt load_flags )
|
||||
|
@ -361,8 +361,8 @@
|
|||
/* <Return> */
|
||||
/* Glyph index. 0 means `undefined character code'. */
|
||||
/* */
|
||||
static
|
||||
FT_UInt Get_Char_Index( TT_CharMap charmap,
|
||||
static FT_UInt
|
||||
Get_Char_Index( TT_CharMap charmap,
|
||||
FT_Long charcode )
|
||||
{
|
||||
FT_Error error;
|
||||
|
@ -406,8 +406,8 @@
|
|||
/*************************************************************************/
|
||||
|
||||
|
||||
static
|
||||
FT_Module_Interface tt_get_interface( TT_Driver driver,
|
||||
static FT_Module_Interface
|
||||
tt_get_interface( TT_Driver driver,
|
||||
const char* interface )
|
||||
{
|
||||
FT_Module sfntd = FT_Get_Module( driver->root.root.library,
|
||||
|
@ -499,7 +499,8 @@
|
|||
/* format-specific interface can then be retrieved through the method */
|
||||
/* interface->get_format_interface. */
|
||||
/* */
|
||||
FT_EXPORT_DEF( const FT_Driver_Class* ) getDriverClass( void )
|
||||
FT_EXPORT_DEF( const FT_Driver_Class* )
|
||||
getDriverClass( void )
|
||||
{
|
||||
return &tt_driver_class;
|
||||
}
|
||||
|
|
|
@ -81,8 +81,8 @@
|
|||
/* This function will much probably move to another component in the */
|
||||
/* near future, but I haven't decided which yet. */
|
||||
/* */
|
||||
FT_LOCAL_DEF
|
||||
void TT_Get_Metrics( TT_HoriHeader* header,
|
||||
FT_LOCAL_DEF void
|
||||
TT_Get_Metrics( TT_HoriHeader* header,
|
||||
FT_UInt index,
|
||||
FT_Short* bearing,
|
||||
FT_UShort* advance )
|
||||
|
@ -111,8 +111,8 @@
|
|||
/* `check' is true, take care of monospaced fonts by returning the */
|
||||
/* advance width maximum. */
|
||||
/* */
|
||||
static
|
||||
void Get_HMetrics( TT_Face face,
|
||||
static void
|
||||
Get_HMetrics( TT_Face face,
|
||||
FT_UInt index,
|
||||
FT_Bool check,
|
||||
FT_Short* lsb,
|
||||
|
@ -130,8 +130,8 @@
|
|||
/* Returns the advance width table for a given pixel size if it is */
|
||||
/* found in the font's `hdmx' table (if any). */
|
||||
/* */
|
||||
static
|
||||
FT_Byte* Get_Advance_Widths( TT_Face face,
|
||||
static FT_Byte*
|
||||
Get_Advance_Widths( TT_Face face,
|
||||
FT_UShort ppem )
|
||||
{
|
||||
FT_UShort n;
|
||||
|
@ -155,8 +155,8 @@
|
|||
/* */
|
||||
/* Translates an array of coordinates. */
|
||||
/* */
|
||||
static
|
||||
void translate_array( FT_UInt n,
|
||||
static void
|
||||
translate_array( FT_UInt n,
|
||||
FT_Vector* coords,
|
||||
FT_Pos delta_x,
|
||||
FT_Pos delta_y )
|
||||
|
@ -174,8 +174,8 @@
|
|||
}
|
||||
|
||||
|
||||
static
|
||||
void tt_prepare_zone( TT_GlyphZone* zone,
|
||||
static void
|
||||
tt_prepare_zone( TT_GlyphZone* zone,
|
||||
FT_GlyphLoad* load,
|
||||
FT_UInt start_point,
|
||||
FT_UInt start_contour )
|
||||
|
@ -506,8 +506,8 @@
|
|||
}
|
||||
|
||||
|
||||
FT_LOCAL_DEF
|
||||
void TT_Init_Glyph_Loading( TT_Face face )
|
||||
FT_LOCAL_DEF void
|
||||
TT_Init_Glyph_Loading( TT_Face face )
|
||||
{
|
||||
face->access_glyph_frame = TT_Access_Glyph_Frame;
|
||||
face->read_glyph_header = TT_Load_Glyph_Header;
|
||||
|
@ -527,8 +527,8 @@
|
|||
/* Usually, this means scaling and hinting through bytecode */
|
||||
/* interpretation. */
|
||||
/* */
|
||||
static
|
||||
FT_Error TT_Process_Simple_Glyph( TT_Loader* load,
|
||||
static FT_Error
|
||||
TT_Process_Simple_Glyph( TT_Loader* load,
|
||||
FT_Bool debug )
|
||||
{
|
||||
FT_GlyphLoader* gloader = load->gloader;
|
||||
|
@ -657,8 +657,8 @@
|
|||
/* Loads a given truetype glyph. Handles composites and uses a */
|
||||
/* TT_Loader object. */
|
||||
/* */
|
||||
static
|
||||
FT_Error load_truetype_glyph( TT_Loader* loader,
|
||||
static FT_Error
|
||||
load_truetype_glyph( TT_Loader* loader,
|
||||
FT_UInt glyph_index )
|
||||
{
|
||||
|
||||
|
@ -1110,8 +1110,8 @@
|
|||
}
|
||||
|
||||
|
||||
static
|
||||
void compute_glyph_metrics( TT_Loader* loader,
|
||||
static void
|
||||
compute_glyph_metrics( TT_Loader* loader,
|
||||
FT_UInt glyph_index )
|
||||
{
|
||||
FT_BBox bbox;
|
||||
|
@ -1313,8 +1313,8 @@
|
|||
/* <Return> */
|
||||
/* FreeType error code. 0 means success. */
|
||||
/* */
|
||||
FT_LOCAL_DEF
|
||||
FT_Error TT_Load_Glyph( TT_Size size,
|
||||
FT_LOCAL_DEF FT_Error
|
||||
TT_Load_Glyph( TT_Size size,
|
||||
TT_GlyphSlot glyph,
|
||||
FT_UShort glyph_index,
|
||||
FT_UInt load_flags )
|
||||
|
|
|
@ -31,17 +31,17 @@
|
|||
FT_BEGIN_HEADER
|
||||
|
||||
|
||||
FT_LOCAL
|
||||
void TT_Get_Metrics( TT_HoriHeader* header,
|
||||
FT_LOCAL void
|
||||
TT_Get_Metrics( TT_HoriHeader* header,
|
||||
FT_UInt index,
|
||||
FT_Short* bearing,
|
||||
FT_UShort* advance );
|
||||
|
||||
FT_LOCAL
|
||||
void TT_Init_Glyph_Loading( TT_Face face );
|
||||
FT_LOCAL void
|
||||
TT_Init_Glyph_Loading( TT_Face face );
|
||||
|
||||
FT_LOCAL
|
||||
FT_Error TT_Load_Glyph( TT_Size size,
|
||||
FT_LOCAL FT_Error
|
||||
TT_Load_Glyph( TT_Size size,
|
||||
TT_GlyphSlot glyph,
|
||||
FT_UShort glyph_index,
|
||||
FT_UInt load_flags );
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -67,24 +67,29 @@ FT_BEGIN_HEADER
|
|||
/*************************************************************************/
|
||||
|
||||
/* Rounding function */
|
||||
typedef FT_F26Dot6 (*TT_Round_Func)( EXEC_OP_ FT_F26Dot6 distance,
|
||||
typedef FT_F26Dot6
|
||||
(*TT_Round_Func)( EXEC_OP_ FT_F26Dot6 distance,
|
||||
FT_F26Dot6 compensation );
|
||||
|
||||
/* Point displacement along the freedom vector routine */
|
||||
typedef void (*TT_Move_Func)( EXEC_OP_ TT_GlyphZone* zone,
|
||||
typedef void
|
||||
(*TT_Move_Func)( EXEC_OP_ TT_GlyphZone* zone,
|
||||
FT_UInt point,
|
||||
FT_F26Dot6 distance );
|
||||
|
||||
/* Distance projection along one of the projection vectors */
|
||||
typedef FT_F26Dot6 (*TT_Project_Func)( EXEC_OP_ FT_Vector* v1,
|
||||
typedef FT_F26Dot6
|
||||
(*TT_Project_Func)( EXEC_OP_ FT_Vector* v1,
|
||||
FT_Vector* v2 );
|
||||
|
||||
/* reading a cvt value. Take care of non-square pixels if necessary */
|
||||
typedef FT_F26Dot6 (*TT_Get_CVT_Func)( EXEC_OP_ FT_ULong index );
|
||||
typedef FT_F26Dot6
|
||||
(*TT_Get_CVT_Func)( EXEC_OP_ FT_ULong index );
|
||||
|
||||
/* setting or moving a cvt value. Take care of non-square pixels */
|
||||
/* if necessary */
|
||||
typedef void (*TT_Set_CVT_Func)( EXEC_OP_ FT_ULong index,
|
||||
typedef void
|
||||
(*TT_Set_CVT_Func)( EXEC_OP_ FT_ULong index,
|
||||
FT_F26Dot6 value );
|
||||
|
||||
|
||||
|
@ -219,19 +224,19 @@ FT_BEGIN_HEADER
|
|||
extern const TT_GraphicsState tt_default_graphics_state;
|
||||
|
||||
|
||||
FT_LOCAL
|
||||
FT_Error TT_Goto_CodeRange( TT_ExecContext exec,
|
||||
FT_LOCAL FT_Error
|
||||
TT_Goto_CodeRange( TT_ExecContext exec,
|
||||
FT_Int range,
|
||||
FT_Long IP );
|
||||
|
||||
FT_LOCAL
|
||||
FT_Error TT_Set_CodeRange( TT_ExecContext exec,
|
||||
FT_LOCAL FT_Error
|
||||
TT_Set_CodeRange( TT_ExecContext exec,
|
||||
FT_Int range,
|
||||
void* base,
|
||||
FT_Long length );
|
||||
|
||||
FT_LOCAL
|
||||
FT_Error TT_Clear_CodeRange( TT_ExecContext exec,
|
||||
FT_LOCAL FT_Error
|
||||
TT_Clear_CodeRange( TT_ExecContext exec,
|
||||
FT_Int range );
|
||||
|
||||
|
||||
|
@ -254,27 +259,28 @@ FT_BEGIN_HEADER
|
|||
/* <Note> */
|
||||
/* Only the glyph loader and debugger should call this function. */
|
||||
/* */
|
||||
FT_EXPORT( TT_ExecContext ) TT_New_Context( TT_Face face );
|
||||
FT_EXPORT( TT_ExecContext )
|
||||
TT_New_Context( TT_Face face );
|
||||
|
||||
|
||||
FT_LOCAL
|
||||
FT_Error TT_Done_Context( TT_ExecContext exec );
|
||||
FT_LOCAL FT_Error
|
||||
TT_Done_Context( TT_ExecContext exec );
|
||||
|
||||
FT_LOCAL
|
||||
FT_Error TT_Destroy_Context( TT_ExecContext exec,
|
||||
FT_LOCAL FT_Error
|
||||
TT_Destroy_Context( TT_ExecContext exec,
|
||||
FT_Memory memory );
|
||||
|
||||
FT_LOCAL
|
||||
FT_Error TT_Load_Context( TT_ExecContext exec,
|
||||
FT_LOCAL FT_Error
|
||||
TT_Load_Context( TT_ExecContext exec,
|
||||
TT_Face face,
|
||||
TT_Size size );
|
||||
|
||||
FT_LOCAL
|
||||
FT_Error TT_Save_Context( TT_ExecContext exec,
|
||||
FT_LOCAL FT_Error
|
||||
TT_Save_Context( TT_ExecContext exec,
|
||||
TT_Size ins );
|
||||
|
||||
FT_LOCAL
|
||||
FT_Error TT_Run_Context( TT_ExecContext exec,
|
||||
FT_LOCAL FT_Error
|
||||
TT_Run_Context( TT_ExecContext exec,
|
||||
FT_Bool debug );
|
||||
|
||||
|
||||
|
@ -299,7 +305,8 @@ FT_BEGIN_HEADER
|
|||
/* This function is publicly exported because it is directly */
|
||||
/* invoked by the TrueType debugger. */
|
||||
/* */
|
||||
FT_EXPORT( FT_Error ) TT_RunIns( TT_ExecContext exec );
|
||||
FT_EXPORT( FT_Error )
|
||||
TT_RunIns( TT_ExecContext exec );
|
||||
|
||||
|
||||
FT_END_HEADER
|
||||
|
|
|
@ -65,8 +65,8 @@
|
|||
/* <Input> */
|
||||
/* zone :: A pointer to the target glyph zone. */
|
||||
/* */
|
||||
FT_LOCAL_DEF
|
||||
void TT_Done_GlyphZone( TT_GlyphZone* zone )
|
||||
FT_LOCAL_DEF void
|
||||
TT_Done_GlyphZone( TT_GlyphZone* zone )
|
||||
{
|
||||
FT_Memory memory = zone->memory;
|
||||
|
||||
|
@ -102,8 +102,8 @@
|
|||
/* <Return> */
|
||||
/* FreeType error code. 0 means success. */
|
||||
/* */
|
||||
FT_LOCAL_DEF
|
||||
FT_Error TT_New_GlyphZone( FT_Memory memory,
|
||||
FT_LOCAL_DEF FT_Error
|
||||
TT_New_GlyphZone( FT_Memory memory,
|
||||
FT_UShort maxPoints,
|
||||
FT_Short maxContours,
|
||||
TT_GlyphZone* zone )
|
||||
|
@ -153,8 +153,8 @@
|
|||
/* <Return> */
|
||||
/* FreeType error code. 0 means success. */
|
||||
/* */
|
||||
FT_LOCAL_DEF
|
||||
FT_Error TT_Init_Face( FT_Stream stream,
|
||||
FT_LOCAL_DEF FT_Error
|
||||
TT_Init_Face( FT_Stream stream,
|
||||
TT_Face face,
|
||||
FT_Int face_index,
|
||||
FT_Int num_params,
|
||||
|
@ -224,8 +224,8 @@
|
|||
/* <Input> */
|
||||
/* face :: A pointer to the face object to destroy. */
|
||||
/* */
|
||||
FT_LOCAL_DEF
|
||||
void TT_Done_Face( TT_Face face )
|
||||
FT_LOCAL_DEF void
|
||||
TT_Done_Face( TT_Face face )
|
||||
{
|
||||
FT_Memory memory = face->root.memory;
|
||||
FT_Stream stream = face->root.stream;
|
||||
|
@ -277,8 +277,8 @@
|
|||
/* <Return> */
|
||||
/* FreeType error code. 0 means success. */
|
||||
/* */
|
||||
FT_LOCAL_DEF
|
||||
FT_Error TT_Init_Size( TT_Size size )
|
||||
FT_LOCAL_DEF FT_Error
|
||||
TT_Init_Size( TT_Size size )
|
||||
{
|
||||
FT_Error error = TT_Err_Ok;
|
||||
|
||||
|
@ -464,8 +464,8 @@
|
|||
/* <Input> */
|
||||
/* size :: A handle to the target size object. */
|
||||
/* */
|
||||
FT_LOCAL_DEF
|
||||
void TT_Done_Size( TT_Size size )
|
||||
FT_LOCAL_DEF void
|
||||
TT_Done_Size( TT_Size size )
|
||||
{
|
||||
|
||||
#ifdef TT_CONFIG_OPTION_BYTECODE_INTERPRETER
|
||||
|
@ -519,8 +519,8 @@
|
|||
/* <Input> */
|
||||
/* size :: A handle to the target size object. */
|
||||
/* */
|
||||
static
|
||||
FT_Error Reset_Outline_Size( TT_Size size )
|
||||
static FT_Error
|
||||
Reset_Outline_Size( TT_Size size )
|
||||
{
|
||||
TT_Face face;
|
||||
FT_Error error = TT_Err_Ok;
|
||||
|
@ -670,8 +670,8 @@
|
|||
/* <Input> */
|
||||
/* size :: A handle to the target size object. */
|
||||
/* */
|
||||
static
|
||||
FT_Error Reset_SBit_Size( TT_Size size )
|
||||
static FT_Error
|
||||
Reset_SBit_Size( TT_Size size )
|
||||
{
|
||||
TT_Face face;
|
||||
FT_Error error = TT_Err_Ok;
|
||||
|
@ -756,8 +756,8 @@
|
|||
/* <Input> */
|
||||
/* size :: A handle to the target size object. */
|
||||
/* */
|
||||
FT_LOCAL_DEF
|
||||
FT_Error TT_Reset_Size( TT_Size size )
|
||||
FT_LOCAL_DEF FT_Error
|
||||
TT_Reset_Size( TT_Size size )
|
||||
{
|
||||
FT_Face face;
|
||||
FT_Error error = TT_Err_Ok;
|
||||
|
@ -808,8 +808,8 @@
|
|||
/* <Return> */
|
||||
/* FreeType error code. 0 means success. */
|
||||
/* */
|
||||
FT_LOCAL_DEF
|
||||
FT_Error TT_Init_Driver( TT_Driver driver )
|
||||
FT_LOCAL_DEF FT_Error
|
||||
TT_Init_Driver( TT_Driver driver )
|
||||
{
|
||||
FT_Error error;
|
||||
|
||||
|
@ -839,8 +839,8 @@
|
|||
/* <Input> */
|
||||
/* driver :: A handle to the target TrueType driver. */
|
||||
/* */
|
||||
FT_LOCAL_DEF
|
||||
void TT_Done_Driver( TT_Driver driver )
|
||||
FT_LOCAL_DEF void
|
||||
TT_Done_Driver( TT_Driver driver )
|
||||
{
|
||||
/* destroy extensions registry if needed */
|
||||
|
||||
|
|
|
@ -107,11 +107,11 @@ FT_BEGIN_HEADER
|
|||
|
||||
#ifdef TT_CONFIG_OPTION_BYTECODE_INTERPRETER
|
||||
|
||||
FT_LOCAL
|
||||
void TT_Done_GlyphZone( TT_GlyphZone* zone );
|
||||
FT_LOCAL void
|
||||
TT_Done_GlyphZone( TT_GlyphZone* zone );
|
||||
|
||||
FT_LOCAL
|
||||
FT_Error TT_New_GlyphZone( FT_Memory memory,
|
||||
FT_LOCAL FT_Error
|
||||
TT_New_GlyphZone( FT_Memory memory,
|
||||
FT_UShort maxPoints,
|
||||
FT_Short maxContours,
|
||||
TT_GlyphZone* zone );
|
||||
|
@ -378,40 +378,40 @@ FT_BEGIN_HEADER
|
|||
/* */
|
||||
/* Face functions */
|
||||
/* */
|
||||
FT_LOCAL
|
||||
FT_Error TT_Init_Face( FT_Stream stream,
|
||||
FT_LOCAL FT_Error
|
||||
TT_Init_Face( FT_Stream stream,
|
||||
TT_Face face,
|
||||
FT_Int face_index,
|
||||
FT_Int num_params,
|
||||
FT_Parameter* params );
|
||||
|
||||
FT_LOCAL
|
||||
void TT_Done_Face( TT_Face face );
|
||||
FT_LOCAL void
|
||||
TT_Done_Face( TT_Face face );
|
||||
|
||||
|
||||
/*************************************************************************/
|
||||
/* */
|
||||
/* Size functions */
|
||||
/* */
|
||||
FT_LOCAL
|
||||
FT_Error TT_Init_Size( TT_Size size );
|
||||
FT_LOCAL FT_Error
|
||||
TT_Init_Size( TT_Size size );
|
||||
|
||||
FT_LOCAL
|
||||
void TT_Done_Size( TT_Size size );
|
||||
FT_LOCAL void
|
||||
TT_Done_Size( TT_Size size );
|
||||
|
||||
FT_LOCAL
|
||||
FT_Error TT_Reset_Size( TT_Size size );
|
||||
FT_LOCAL FT_Error
|
||||
TT_Reset_Size( TT_Size size );
|
||||
|
||||
|
||||
/*************************************************************************/
|
||||
/* */
|
||||
/* Driver functions */
|
||||
/* */
|
||||
FT_LOCAL
|
||||
FT_Error TT_Init_Driver( TT_Driver driver );
|
||||
FT_LOCAL FT_Error
|
||||
TT_Init_Driver( TT_Driver driver );
|
||||
|
||||
FT_LOCAL
|
||||
void TT_Done_Driver( TT_Driver driver );
|
||||
FT_LOCAL void
|
||||
TT_Done_Driver( TT_Driver driver );
|
||||
|
||||
|
||||
FT_END_HEADER
|
||||
|
|
|
@ -54,8 +54,8 @@
|
|||
/* <Return> */
|
||||
/* FreeType error code. 0 means success. */
|
||||
/* */
|
||||
FT_LOCAL_DEF
|
||||
FT_Error TT_Load_Locations( TT_Face face,
|
||||
FT_LOCAL_DEF FT_Error
|
||||
TT_Load_Locations( TT_Face face,
|
||||
FT_Stream stream )
|
||||
{
|
||||
FT_Error error;
|
||||
|
@ -147,8 +147,8 @@
|
|||
/* <Return> */
|
||||
/* FreeType error code. 0 means success. */
|
||||
/* */
|
||||
FT_LOCAL_DEF
|
||||
FT_Error TT_Load_CVT( TT_Face face,
|
||||
FT_LOCAL_DEF FT_Error
|
||||
TT_Load_CVT( TT_Face face,
|
||||
FT_Stream stream )
|
||||
{
|
||||
FT_Error error;
|
||||
|
@ -214,8 +214,8 @@
|
|||
/* <Return> */
|
||||
/* FreeType error code. 0 means success. */
|
||||
/* */
|
||||
FT_LOCAL_DEF
|
||||
FT_Error TT_Load_Programs( TT_Face face,
|
||||
FT_LOCAL_DEF FT_Error
|
||||
TT_Load_Programs( TT_Face face,
|
||||
FT_Stream stream )
|
||||
{
|
||||
FT_Error error;
|
||||
|
|
|
@ -27,16 +27,16 @@
|
|||
FT_BEGIN_HEADER
|
||||
|
||||
|
||||
FT_LOCAL
|
||||
FT_Error TT_Load_Locations( TT_Face face,
|
||||
FT_LOCAL FT_Error
|
||||
TT_Load_Locations( TT_Face face,
|
||||
FT_Stream stream );
|
||||
|
||||
FT_LOCAL
|
||||
FT_Error TT_Load_CVT( TT_Face face,
|
||||
FT_LOCAL FT_Error
|
||||
TT_Load_CVT( TT_Face face,
|
||||
FT_Stream stream );
|
||||
|
||||
FT_LOCAL
|
||||
FT_Error TT_Load_Programs( TT_Face face,
|
||||
FT_LOCAL FT_Error
|
||||
TT_Load_Programs( TT_Face face,
|
||||
FT_Stream stream );
|
||||
|
||||
|
||||
|
|
|
@ -35,8 +35,8 @@
|
|||
#define FT_COMPONENT trace_t1afm
|
||||
|
||||
|
||||
FT_LOCAL_DEF
|
||||
void T1_Done_AFM( FT_Memory memory,
|
||||
FT_LOCAL_DEF void
|
||||
T1_Done_AFM( FT_Memory memory,
|
||||
T1_AFM* afm )
|
||||
{
|
||||
FREE( afm->kern_pairs );
|
||||
|
@ -53,8 +53,8 @@
|
|||
|
||||
|
||||
/* read a glyph name and return the equivalent glyph index */
|
||||
static
|
||||
FT_UInt afm_atoindex( FT_Byte** start,
|
||||
static FT_UInt
|
||||
afm_atoindex( FT_Byte** start,
|
||||
FT_Byte* limit,
|
||||
T1_Font* type1 )
|
||||
{
|
||||
|
@ -104,8 +104,8 @@
|
|||
|
||||
|
||||
/* read an integer */
|
||||
static
|
||||
int afm_atoi( FT_Byte** start,
|
||||
static int
|
||||
afm_atoi( FT_Byte** start,
|
||||
FT_Byte* limit )
|
||||
{
|
||||
FT_Byte* p = *start;
|
||||
|
@ -155,8 +155,8 @@
|
|||
|
||||
|
||||
/* parse an AFM file -- for now, only read the kerning pairs */
|
||||
FT_LOCAL_DEF
|
||||
FT_Error T1_Read_AFM( FT_Face t1_face,
|
||||
FT_LOCAL_DEF FT_Error
|
||||
T1_Read_AFM( FT_Face t1_face,
|
||||
FT_Stream stream )
|
||||
{
|
||||
FT_Error error;
|
||||
|
@ -241,8 +241,8 @@
|
|||
|
||||
|
||||
/* find the kerning for a given glyph pair */
|
||||
FT_LOCAL_DEF
|
||||
void T1_Get_Kerning( T1_AFM* afm,
|
||||
FT_LOCAL_DEF void
|
||||
T1_Get_Kerning( T1_AFM* afm,
|
||||
FT_UInt glyph1,
|
||||
FT_UInt glyph2,
|
||||
FT_Vector* kerning )
|
||||
|
|
|
@ -43,16 +43,16 @@ FT_BEGIN_HEADER
|
|||
} T1_AFM;
|
||||
|
||||
|
||||
FT_LOCAL
|
||||
FT_Error T1_Read_AFM( FT_Face face,
|
||||
FT_LOCAL FT_Error
|
||||
T1_Read_AFM( FT_Face face,
|
||||
FT_Stream stream );
|
||||
|
||||
FT_LOCAL
|
||||
void T1_Done_AFM( FT_Memory memory,
|
||||
FT_LOCAL void
|
||||
T1_Done_AFM( FT_Memory memory,
|
||||
T1_AFM* afm );
|
||||
|
||||
FT_LOCAL
|
||||
void T1_Get_Kerning( T1_AFM* afm,
|
||||
FT_LOCAL void
|
||||
T1_Get_Kerning( T1_AFM* afm,
|
||||
FT_UInt glyph1,
|
||||
FT_UInt glyph2,
|
||||
FT_Vector* kerning );
|
||||
|
|
|
@ -44,8 +44,8 @@
|
|||
#define FT_COMPONENT trace_t1driver
|
||||
|
||||
|
||||
static
|
||||
FT_Error get_t1_glyph_name( T1_Face face,
|
||||
static FT_Error
|
||||
get_t1_glyph_name( T1_Face face,
|
||||
FT_UInt glyph_index,
|
||||
FT_Pointer buffer,
|
||||
FT_UInt buffer_max )
|
||||
|
@ -98,8 +98,8 @@
|
|||
/* isn't available (i.e., wasn't compiled in the driver at build */
|
||||
/* time). */
|
||||
/* */
|
||||
static
|
||||
FT_Module_Interface Get_Interface( FT_Driver driver,
|
||||
static FT_Module_Interface
|
||||
Get_Interface( FT_Driver driver,
|
||||
const FT_String* interface )
|
||||
{
|
||||
FT_UNUSED( driver );
|
||||
|
@ -156,8 +156,8 @@
|
|||
/* */
|
||||
/* They can be implemented by format-specific interfaces. */
|
||||
/* */
|
||||
static
|
||||
FT_Error Get_Kerning( T1_Face face,
|
||||
static FT_Error
|
||||
Get_Kerning( T1_Face face,
|
||||
FT_UInt left_glyph,
|
||||
FT_UInt right_glyph,
|
||||
FT_Vector* kerning )
|
||||
|
@ -194,8 +194,8 @@
|
|||
/* <Return> */
|
||||
/* Glyph index. 0 means `undefined character code'. */
|
||||
/* */
|
||||
static
|
||||
FT_UInt Get_Char_Index( FT_CharMap charmap,
|
||||
static FT_UInt
|
||||
Get_Char_Index( FT_CharMap charmap,
|
||||
FT_Long charcode )
|
||||
{
|
||||
T1_Face face;
|
||||
|
@ -344,7 +344,8 @@
|
|||
/* format-specific interface can then be retrieved through the method */
|
||||
/* interface->get_format_interface. */
|
||||
/* */
|
||||
FT_EXPORT_DEF( const FT_Driver_Class* ) getDriverClass( void )
|
||||
FT_EXPORT_DEF( const FT_Driver_Class* )
|
||||
getDriverClass( void )
|
||||
{
|
||||
return &t1_driver_class;
|
||||
}
|
||||
|
|
|
@ -73,8 +73,8 @@
|
|||
}
|
||||
|
||||
|
||||
FT_LOCAL_DEF
|
||||
FT_Error T1_Compute_Max_Advance( T1_Face face,
|
||||
FT_LOCAL_DEF FT_Error
|
||||
T1_Compute_Max_Advance( T1_Face face,
|
||||
FT_Int* max_advance )
|
||||
{
|
||||
FT_Error error;
|
||||
|
@ -135,8 +135,8 @@
|
|||
/*************************************************************************/
|
||||
|
||||
|
||||
FT_LOCAL_DEF
|
||||
FT_Error T1_Load_Glyph( T1_GlyphSlot glyph,
|
||||
FT_LOCAL_DEF FT_Error
|
||||
T1_Load_Glyph( T1_GlyphSlot glyph,
|
||||
T1_Size size,
|
||||
FT_Int glyph_index,
|
||||
FT_Int load_flags )
|
||||
|
|
|
@ -27,12 +27,12 @@
|
|||
FT_BEGIN_HEADER
|
||||
|
||||
|
||||
FT_LOCAL
|
||||
FT_Error T1_Compute_Max_Advance( T1_Face face,
|
||||
FT_LOCAL FT_Error
|
||||
T1_Compute_Max_Advance( T1_Face face,
|
||||
FT_Int* max_advance );
|
||||
|
||||
FT_LOCAL
|
||||
FT_Error T1_Load_Glyph( T1_GlyphSlot glyph,
|
||||
FT_LOCAL FT_Error
|
||||
T1_Load_Glyph( T1_GlyphSlot glyph,
|
||||
T1_Size size,
|
||||
FT_Int glyph_index,
|
||||
FT_Int load_flags );
|
||||
|
|
|
@ -96,8 +96,8 @@
|
|||
/*************************************************************************/
|
||||
/*************************************************************************/
|
||||
|
||||
static
|
||||
FT_Error t1_allocate_blend( T1_Face face,
|
||||
static FT_Error
|
||||
t1_allocate_blend( T1_Face face,
|
||||
FT_UInt num_designs,
|
||||
FT_UInt num_axis )
|
||||
{
|
||||
|
@ -180,8 +180,8 @@
|
|||
}
|
||||
|
||||
|
||||
FT_LOCAL_DEF
|
||||
FT_Error T1_Get_Multi_Master( T1_Face face,
|
||||
FT_LOCAL_DEF FT_Error
|
||||
T1_Get_Multi_Master( T1_Face face,
|
||||
FT_Multi_Master* master )
|
||||
{
|
||||
T1_Blend* blend = face->blend;
|
||||
|
@ -212,8 +212,8 @@
|
|||
}
|
||||
|
||||
|
||||
FT_LOCAL_DEF
|
||||
FT_Error T1_Set_MM_Blend( T1_Face face,
|
||||
FT_LOCAL_DEF FT_Error
|
||||
T1_Set_MM_Blend( T1_Face face,
|
||||
FT_UInt num_coords,
|
||||
FT_Fixed* coords )
|
||||
{
|
||||
|
@ -258,8 +258,8 @@
|
|||
}
|
||||
|
||||
|
||||
FT_LOCAL_DEF
|
||||
FT_Error T1_Set_MM_Design( T1_Face face,
|
||||
FT_LOCAL_DEF FT_Error
|
||||
T1_Set_MM_Design( T1_Face face,
|
||||
FT_UInt num_coords,
|
||||
FT_Long* coords )
|
||||
{
|
||||
|
@ -328,8 +328,8 @@
|
|||
}
|
||||
|
||||
|
||||
FT_LOCAL_DEF
|
||||
void T1_Done_Blend( T1_Face face )
|
||||
FT_LOCAL_DEF void
|
||||
T1_Done_Blend( T1_Face face )
|
||||
{
|
||||
FT_Memory memory = face->root.memory;
|
||||
T1_Blend* blend = face->blend;
|
||||
|
@ -380,8 +380,8 @@
|
|||
}
|
||||
|
||||
|
||||
static
|
||||
void parse_blend_axis_types( T1_Face face,
|
||||
static void
|
||||
parse_blend_axis_types( T1_Face face,
|
||||
T1_Loader* loader )
|
||||
{
|
||||
T1_Token axis_tokens[ T1_MAX_MM_AXIS ];
|
||||
|
@ -441,8 +441,8 @@
|
|||
}
|
||||
|
||||
|
||||
static
|
||||
void parse_blend_design_positions( T1_Face face,
|
||||
static void
|
||||
parse_blend_design_positions( T1_Face face,
|
||||
T1_Loader* loader )
|
||||
{
|
||||
T1_Token design_tokens[ T1_MAX_MM_DESIGNS ];
|
||||
|
@ -523,8 +523,8 @@
|
|||
}
|
||||
|
||||
|
||||
static
|
||||
void parse_blend_design_map( T1_Face face,
|
||||
static void
|
||||
parse_blend_design_map( T1_Face face,
|
||||
T1_Loader* loader )
|
||||
{
|
||||
FT_Error error = 0;
|
||||
|
@ -604,8 +604,8 @@
|
|||
}
|
||||
|
||||
|
||||
static
|
||||
void parse_weight_vector( T1_Face face,
|
||||
static void
|
||||
parse_weight_vector( T1_Face face,
|
||||
T1_Loader* loader )
|
||||
{
|
||||
FT_Error error = 0;
|
||||
|
@ -656,8 +656,8 @@
|
|||
/* with a lot of Postscript garbage behind it (that's completely out */
|
||||
/* of spec!); we detect it and terminate the parsing */
|
||||
/* */
|
||||
static
|
||||
void parse_shared_dict( T1_Face face,
|
||||
static void
|
||||
parse_shared_dict( T1_Face face,
|
||||
T1_Loader* loader )
|
||||
{
|
||||
T1_ParserRec* parser = &loader->parser;
|
||||
|
@ -689,8 +689,8 @@
|
|||
/*************************************************************************/
|
||||
|
||||
|
||||
static
|
||||
FT_Error t1_load_keyword( T1_Face face,
|
||||
static FT_Error
|
||||
t1_load_keyword( T1_Face face,
|
||||
T1_Loader* loader,
|
||||
T1_Field* field )
|
||||
{
|
||||
|
@ -756,23 +756,22 @@
|
|||
}
|
||||
|
||||
|
||||
static
|
||||
int is_space( FT_Byte c )
|
||||
static int
|
||||
is_space( FT_Byte c )
|
||||
{
|
||||
return ( c == ' ' || c == '\t' || c == '\r' || c == '\n' );
|
||||
}
|
||||
|
||||
|
||||
static
|
||||
int is_alpha( FT_Byte c )
|
||||
static int
|
||||
is_alpha( FT_Byte c )
|
||||
{
|
||||
return ( isalnum( c ) || c == '.' || c == '_' || c == '-' );
|
||||
}
|
||||
|
||||
|
||||
|
||||
static
|
||||
int read_binary_data( T1_ParserRec* parser,
|
||||
static int
|
||||
read_binary_data( T1_ParserRec* parser,
|
||||
FT_Int* size,
|
||||
FT_Byte** base )
|
||||
{
|
||||
|
@ -813,8 +812,8 @@
|
|||
/* the `/Encoding', `/Subrs', and `/CharStrings' */
|
||||
/* dictionaries */
|
||||
|
||||
static
|
||||
void parse_font_name( T1_Face face,
|
||||
static void
|
||||
parse_font_name( T1_Face face,
|
||||
T1_Loader* loader )
|
||||
{
|
||||
T1_ParserRec* parser = &loader->parser;
|
||||
|
@ -855,8 +854,8 @@
|
|||
}
|
||||
|
||||
|
||||
static
|
||||
void parse_font_bbox( T1_Face face,
|
||||
static void
|
||||
parse_font_bbox( T1_Face face,
|
||||
T1_Loader* loader )
|
||||
{
|
||||
T1_ParserRec* parser = &loader->parser;
|
||||
|
@ -872,8 +871,8 @@
|
|||
}
|
||||
|
||||
|
||||
static
|
||||
void parse_font_matrix( T1_Face face,
|
||||
static void
|
||||
parse_font_matrix( T1_Face face,
|
||||
T1_Loader* loader )
|
||||
{
|
||||
T1_ParserRec* parser = &loader->parser;
|
||||
|
@ -921,8 +920,8 @@
|
|||
}
|
||||
|
||||
|
||||
static
|
||||
void parse_encoding( T1_Face face,
|
||||
static void
|
||||
parse_encoding( T1_Face face,
|
||||
T1_Loader* loader )
|
||||
{
|
||||
T1_ParserRec* parser = &loader->parser;
|
||||
|
@ -1081,8 +1080,8 @@
|
|||
}
|
||||
|
||||
|
||||
static
|
||||
void parse_subrs( T1_Face face,
|
||||
static void
|
||||
parse_subrs( T1_Face face,
|
||||
T1_Loader* loader )
|
||||
{
|
||||
T1_ParserRec* parser = &loader->parser;
|
||||
|
@ -1166,8 +1165,8 @@
|
|||
}
|
||||
|
||||
|
||||
static
|
||||
void parse_charstrings( T1_Face face,
|
||||
static void
|
||||
parse_charstrings( T1_Face face,
|
||||
T1_Loader* loader )
|
||||
{
|
||||
T1_ParserRec* parser = &loader->parser;
|
||||
|
@ -1448,8 +1447,8 @@
|
|||
};
|
||||
|
||||
|
||||
static
|
||||
FT_Error parse_dict( T1_Face face,
|
||||
static FT_Error
|
||||
parse_dict( T1_Face face,
|
||||
T1_Loader* loader,
|
||||
FT_Byte* base,
|
||||
FT_Long size )
|
||||
|
@ -1565,8 +1564,8 @@
|
|||
}
|
||||
|
||||
|
||||
static
|
||||
void t1_init_loader( T1_Loader* loader,
|
||||
static void
|
||||
t1_init_loader( T1_Loader* loader,
|
||||
T1_Face face )
|
||||
{
|
||||
FT_UNUSED( face );
|
||||
|
@ -1585,8 +1584,8 @@
|
|||
}
|
||||
|
||||
|
||||
static
|
||||
void t1_done_loader( T1_Loader* loader )
|
||||
static void
|
||||
t1_done_loader( T1_Loader* loader )
|
||||
{
|
||||
T1_ParserRec* parser = &loader->parser;
|
||||
|
||||
|
@ -1603,8 +1602,8 @@
|
|||
}
|
||||
|
||||
|
||||
FT_LOCAL_DEF
|
||||
FT_Error T1_Open_Face( T1_Face face )
|
||||
FT_LOCAL_DEF FT_Error
|
||||
T1_Open_Face( T1_Face face )
|
||||
{
|
||||
T1_Loader loader;
|
||||
T1_ParserRec* parser;
|
||||
|
|
|
@ -51,27 +51,27 @@ FT_BEGIN_HEADER
|
|||
} T1_Loader;
|
||||
|
||||
|
||||
FT_LOCAL
|
||||
FT_Error T1_Open_Face( T1_Face face );
|
||||
FT_LOCAL FT_Error
|
||||
T1_Open_Face( T1_Face face );
|
||||
|
||||
#ifndef T1_CONFIG_OPTION_NO_MM_SUPPORT
|
||||
|
||||
FT_LOCAL
|
||||
FT_Error T1_Get_Multi_Master( T1_Face face,
|
||||
FT_LOCAL FT_Error
|
||||
T1_Get_Multi_Master( T1_Face face,
|
||||
FT_Multi_Master* master );
|
||||
|
||||
FT_LOCAL
|
||||
FT_Error T1_Set_MM_Blend( T1_Face face,
|
||||
FT_LOCAL FT_Error
|
||||
T1_Set_MM_Blend( T1_Face face,
|
||||
FT_UInt num_coords,
|
||||
FT_Fixed* coords );
|
||||
|
||||
FT_LOCAL
|
||||
FT_Error T1_Set_MM_Design( T1_Face face,
|
||||
FT_LOCAL FT_Error
|
||||
T1_Set_MM_Design( T1_Face face,
|
||||
FT_UInt num_coords,
|
||||
FT_Long* coords );
|
||||
|
||||
FT_LOCAL
|
||||
void T1_Done_Blend( T1_Face face );
|
||||
FT_LOCAL void
|
||||
T1_Done_Blend( T1_Face face );
|
||||
|
||||
#endif /* !T1_CONFIG_OPTION_NO_MM_SUPPORT */
|
||||
|
||||
|
|
|
@ -63,8 +63,8 @@
|
|||
/* <Input> */
|
||||
/* face :: A typeless pointer to the face object to destroy. */
|
||||
/* */
|
||||
FT_LOCAL_DEF
|
||||
void T1_Done_Face( T1_Face face )
|
||||
FT_LOCAL_DEF void
|
||||
T1_Done_Face( T1_Face face )
|
||||
{
|
||||
FT_Memory memory;
|
||||
T1_Font* type1 = &face->type1;
|
||||
|
@ -147,8 +147,8 @@
|
|||
/* <Return> */
|
||||
/* FreeType error code. 0 means success. */
|
||||
/* */
|
||||
FT_LOCAL_DEF
|
||||
FT_Error T1_Init_Face( FT_Stream stream,
|
||||
FT_LOCAL_DEF FT_Error
|
||||
T1_Init_Face( FT_Stream stream,
|
||||
T1_Face face,
|
||||
FT_Int face_index,
|
||||
FT_Int num_params,
|
||||
|
@ -386,8 +386,8 @@
|
|||
/* <Return> */
|
||||
/* FreeType error code. 0 means success. */
|
||||
/* */
|
||||
FT_LOCAL_DEF
|
||||
FT_Error T1_Init_Driver( T1_Driver driver )
|
||||
FT_LOCAL_DEF FT_Error
|
||||
T1_Init_Driver( T1_Driver driver )
|
||||
{
|
||||
FT_UNUSED( driver );
|
||||
|
||||
|
@ -406,8 +406,8 @@
|
|||
/* <Input> */
|
||||
/* driver :: A handle to the target Type 1 driver. */
|
||||
/* */
|
||||
FT_LOCAL_DEF
|
||||
void T1_Done_Driver( T1_Driver driver )
|
||||
FT_LOCAL_DEF void
|
||||
T1_Done_Driver( T1_Driver driver )
|
||||
{
|
||||
FT_UNUSED( driver );
|
||||
}
|
||||
|
|
|
@ -135,21 +135,21 @@ FT_BEGIN_HEADER
|
|||
} T1_GlyphSlotRec;
|
||||
|
||||
|
||||
FT_LOCAL
|
||||
FT_Error T1_Init_Face( FT_Stream stream,
|
||||
FT_LOCAL FT_Error
|
||||
T1_Init_Face( FT_Stream stream,
|
||||
T1_Face face,
|
||||
FT_Int face_index,
|
||||
FT_Int num_params,
|
||||
FT_Parameter* params );
|
||||
|
||||
FT_LOCAL
|
||||
void T1_Done_Face( T1_Face face );
|
||||
FT_LOCAL void
|
||||
T1_Done_Face( T1_Face face );
|
||||
|
||||
FT_LOCAL
|
||||
FT_Error T1_Init_Driver( T1_Driver driver );
|
||||
FT_LOCAL FT_Error
|
||||
T1_Init_Driver( T1_Driver driver );
|
||||
|
||||
FT_LOCAL
|
||||
void T1_Done_Driver( T1_Driver driver );
|
||||
FT_LOCAL void
|
||||
T1_Done_Driver( T1_Driver driver );
|
||||
|
||||
|
||||
FT_END_HEADER
|
||||
|
|
|
@ -95,8 +95,8 @@
|
|||
};
|
||||
|
||||
|
||||
static
|
||||
FT_Error read_pfb_tag( FT_Stream stream,
|
||||
static FT_Error
|
||||
read_pfb_tag( FT_Stream stream,
|
||||
FT_UShort* tag,
|
||||
FT_Long* size )
|
||||
{
|
||||
|
@ -118,8 +118,8 @@
|
|||
}
|
||||
|
||||
|
||||
FT_LOCAL_DEF
|
||||
FT_Error T1_New_Parser( T1_ParserRec* parser,
|
||||
FT_LOCAL_DEF FT_Error
|
||||
T1_New_Parser( T1_ParserRec* parser,
|
||||
FT_Stream stream,
|
||||
FT_Memory memory,
|
||||
PSAux_Interface* psaux )
|
||||
|
@ -227,8 +227,8 @@
|
|||
}
|
||||
|
||||
|
||||
FT_LOCAL_DEF
|
||||
void T1_Finalize_Parser( T1_ParserRec* parser )
|
||||
FT_LOCAL_DEF void
|
||||
T1_Finalize_Parser( T1_ParserRec* parser )
|
||||
{
|
||||
FT_Memory memory = parser->root.memory;
|
||||
|
||||
|
@ -245,8 +245,8 @@
|
|||
|
||||
|
||||
/* return the value of an hexadecimal digit */
|
||||
static
|
||||
int hexa_value( char c )
|
||||
static int
|
||||
hexa_value( char c )
|
||||
{
|
||||
unsigned int d;
|
||||
|
||||
|
@ -267,8 +267,8 @@
|
|||
}
|
||||
|
||||
|
||||
FT_LOCAL_DEF
|
||||
FT_Error T1_Get_Private_Dict( T1_ParserRec* parser,
|
||||
FT_LOCAL_DEF FT_Error
|
||||
T1_Get_Private_Dict( T1_ParserRec* parser,
|
||||
PSAux_Interface* psaux )
|
||||
{
|
||||
FT_Stream stream = parser->stream;
|
||||
|
|
|
@ -112,18 +112,18 @@ FT_BEGIN_HEADER
|
|||
(p)->root.funcs.load_field_table( &(p)->root, f, o, m, pf )
|
||||
|
||||
|
||||
FT_LOCAL
|
||||
FT_Error T1_New_Parser( T1_ParserRec* parser,
|
||||
FT_LOCAL FT_Error
|
||||
T1_New_Parser( T1_ParserRec* parser,
|
||||
FT_Stream stream,
|
||||
FT_Memory memory,
|
||||
PSAux_Interface* psaux );
|
||||
|
||||
FT_LOCAL
|
||||
FT_Error T1_Get_Private_Dict( T1_ParserRec* parser,
|
||||
FT_LOCAL FT_Error
|
||||
T1_Get_Private_Dict( T1_ParserRec* parser,
|
||||
PSAux_Interface* psaux );
|
||||
|
||||
FT_LOCAL
|
||||
void T1_Finalize_Parser( T1_ParserRec* parser );
|
||||
FT_LOCAL void
|
||||
T1_Finalize_Parser( T1_ParserRec* parser );
|
||||
|
||||
|
||||
FT_END_HEADER
|
||||
|
|
|
@ -648,7 +648,8 @@
|
|||
/* format-specific interface can then be retrieved through the method */
|
||||
/* interface->get_format_interface. */
|
||||
/* */
|
||||
FT_EXPORT_DEF( const FT_Driver_Class* ) getDriverClass( void )
|
||||
FT_EXPORT_DEF( const FT_Driver_Class* )
|
||||
getDriverClass( void )
|
||||
{
|
||||
return &winfnt_driver_class;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue