[sfnt] Formatting.

This commit is contained in:
Werner Lemberg 2012-08-27 05:48:23 +02:00
parent b355b5693a
commit d77b1ea012
3 changed files with 87 additions and 52 deletions

View File

@ -562,6 +562,7 @@
FT_UNUSED( face_index ); FT_UNUSED( face_index );
/* Check parameters */ /* Check parameters */
{ {

View File

@ -4,7 +4,7 @@
/* */ /* */
/* TrueType character mapping table (cmap) support (specification). */ /* TrueType character mapping table (cmap) support (specification). */
/* */ /* */
/* Copyright 2002, 2003, 2004, 2005 by */ /* Copyright 2002-2005, 2009, 2012 by */
/* David Turner, Robert Wilhelm, and Werner Lemberg. */ /* David Turner, Robert Wilhelm, and Werner Lemberg. */
/* */ /* */
/* This file is part of the FreeType project, and may only be used, */ /* This file is part of the FreeType project, and may only be used, */
@ -55,27 +55,59 @@ FT_BEGIN_HEADER
} TT_CMap_ClassRec; } TT_CMap_ClassRec;
#ifndef FT_CONFIG_OPTION_PIC #ifndef FT_CONFIG_OPTION_PIC
#define FT_DEFINE_TT_CMAP(class_, size_, init_, done_, char_index_, \ #define FT_DEFINE_TT_CMAP( class_, \
char_next_, char_var_index_, char_var_default_, variant_list_, \ size_, \
charvariant_list_,variantchar_list_, \ init_, \
format_, validate_, get_cmap_info_) \ done_, \
char_index_, \
char_next_, \
char_var_index_, \
char_var_default_, \
variant_list_, \
charvariant_list_, \
variantchar_list_, \
format_, \
validate_, \
get_cmap_info_ ) \
FT_CALLBACK_TABLE_DEF \ FT_CALLBACK_TABLE_DEF \
const TT_CMap_ClassRec class_ = \ const TT_CMap_ClassRec class_ = \
{ \ { \
{size_, init_, done_, char_index_, \ { size_, \
char_next_, char_var_index_, char_var_default_, variant_list_, \ init_, \
charvariant_list_, variantchar_list_}, \ done_, \
format_, validate_, get_cmap_info_ \ char_index_, \
char_next_, \
char_var_index_, \
char_var_default_, \
variant_list_, \
charvariant_list_, \
variantchar_list_ \
}, \
\
format_, \
validate_, \
get_cmap_info_ \
}; };
#else /* FT_CONFIG_OPTION_PIC */ #else /* FT_CONFIG_OPTION_PIC */
#define FT_DEFINE_TT_CMAP(class_, size_, init_, done_, char_index_, \ #define FT_DEFINE_TT_CMAP( class_, \
char_next_, char_var_index_, char_var_default_, variant_list_, \ size_, \
charvariant_list_,variantchar_list_, \ init_, \
format_, validate_, get_cmap_info_) \ done_, \
char_index_, \
char_next_, \
char_var_index_, \
char_var_default_, \
variant_list_, \
charvariant_list_, \
variantchar_list_, \
format_, \
validate_, \
get_cmap_info_ ) \
void \ void \
FT_Init_Class_ ## class_( TT_CMap_ClassRec* clazz ) \ FT_Init_Class_ ## class_( TT_CMap_ClassRec* clazz ) \
{ \ { \
@ -96,6 +128,7 @@ FT_BEGIN_HEADER
#endif /* FT_CONFIG_OPTION_PIC */ #endif /* FT_CONFIG_OPTION_PIC */
typedef struct TT_ValidatorRec_ typedef struct TT_ValidatorRec_
{ {
FT_ValidatorRec validator; FT_ValidatorRec validator;

View File

@ -52,4 +52,5 @@
TTCMAPCITEM( tt_cmap14_class_rec ) TTCMAPCITEM( tt_cmap14_class_rec )
#endif #endif
/* END */ /* END */