Whitespace.

This commit is contained in:
Werner Lemberg 2016-02-15 12:54:40 +01:00
parent 3101f89825
commit 3295039107
21 changed files with 27 additions and 27 deletions

View File

@ -1528,7 +1528,7 @@
} }
if ( dist < 54 ) if ( dist < 54 )
dist += ( 54 - dist ) / 2 ; dist += ( 54 - dist ) / 2;
else if ( dist < 3 * 64 ) else if ( dist < 3 * 64 )
{ {
FT_Pos delta; FT_Pos delta;

View File

@ -351,7 +351,7 @@
} }
/* for each row */ /* for each row */
for ( y = 0; y < bitmap->rows ; y++ ) for ( y = 0; y < bitmap->rows; y++ )
{ {
/* /*
* Horizontally: * Horizontally:

View File

@ -228,7 +228,7 @@
if ( !fontName || !face_index ) if ( !fontName || !face_index )
return FT_THROW( Invalid_Argument) ; return FT_THROW( Invalid_Argument);
err = FT_GetFileRef_From_Mac_ATS_Name( fontName, &ref, face_index ); err = FT_GetFileRef_From_Mac_ATS_Name( fontName, &ref, face_index );
if ( err ) if ( err )

View File

@ -403,7 +403,7 @@
errors[i] = FT_Err_Ok; errors[i] = FT_Err_Ok;
if ( errors[i] ) if ( errors[i] )
continue ; continue;
errors[i] = (FT_RACCESS_GUESS_TABLE_GET[i].func)( library, errors[i] = (FT_RACCESS_GUESS_TABLE_GET[i].func)( library,
stream, base_name, stream, base_name,

View File

@ -778,7 +778,7 @@
case ft_frame_short_be: case ft_frame_short_be:
case ft_frame_ushort_be: /* read a 2-byte big-endian short */ case ft_frame_ushort_be: /* read a 2-byte big-endian short */
value = FT_NEXT_USHORT( cursor) ; value = FT_NEXT_USHORT( cursor );
sign_shift = 16; sign_shift = 16;
break; break;

2
src/cache/ftcmru.h vendored
View File

@ -185,7 +185,7 @@ FT_BEGIN_HEADER
} \ } \
_node = _node->next; \ _node = _node->next; \
\ \
} while ( _node != _first) ; \ } while ( _node != _first); \
} \ } \
\ \
error = FTC_MruList_New( (list), (key), (FTC_MruNode*)(void*)&(node) ); \ error = FTC_MruList_New( (list), (key), (FTC_MruNode*)(void*)&(node) ); \

View File

@ -680,7 +680,7 @@
#endif /* FT_CONFIG_OPTION_INCREMENTAL */ #endif /* FT_CONFIG_OPTION_INCREMENTAL */
{ {
CFF_Font cff = (CFF_Font)(face->extra.data); CFF_Font cff = (CFF_Font)(face->extra.data);
return cff_index_access_element( &cff->charstrings_index, glyph_index, return cff_index_access_element( &cff->charstrings_index, glyph_index,

View File

@ -809,7 +809,7 @@
/* When multiple GIDs map to the same CID, we choose the lowest */ /* When multiple GIDs map to the same CID, we choose the lowest */
/* GID. This is not described in any spec, but it matches the */ /* GID. This is not described in any spec, but it matches the */
/* behaviour of recent Acroread versions. */ /* behaviour of recent Acroread versions. */
for ( j = (FT_Long)num_glyphs - 1; j >= 0 ; j-- ) for ( j = (FT_Long)num_glyphs - 1; j >= 0; j-- )
charset->cids[charset->sids[j]] = (FT_UShort)j; charset->cids[charset->sids[j]] = (FT_UShort)j;
charset->max_cid = max_cid; charset->max_cid = max_cid;

View File

@ -900,7 +900,7 @@
for ( i = 0; i < nnames; i++ ) for ( i = 0; i < nnames; i++ )
{ {
if ( FT_Get_Sfnt_Name( gxvalid->face, i, &name ) != FT_Err_Ok ) if ( FT_Get_Sfnt_Name( gxvalid->face, i, &name ) != FT_Err_Ok )
continue ; continue;
if ( name.name_id == name_index ) if ( name.name_id == name_index )
goto Out; goto Out;
@ -1472,7 +1472,7 @@
if ( ( p + ( maxEntry + 1 ) * entrySize ) > limit ) if ( ( p + ( maxEntry + 1 ) * entrySize ) > limit )
FT_INVALID_TOO_SHORT; FT_INVALID_TOO_SHORT;
for (entry = 0; entry <= maxEntry ; entry++ ) for (entry = 0; entry <= maxEntry; entry++ )
{ {
FT_UShort newState_idx; FT_UShort newState_idx;
FT_UShort flags; FT_UShort flags;

View File

@ -338,7 +338,7 @@ FT_BEGIN_HEADER
\ \
\ \
for ( b = p; b < (FT_Bytes)p + len; b++ ) \ for ( b = p; b < (FT_Bytes)p + len; b++ ) \
FT_TRACE1(("\\x%02x", *b)) ; \ FT_TRACE1(("\\x%02x", *b)); \
} \ } \
FT_END_STMNT FT_END_STMNT
@ -350,9 +350,9 @@ FT_BEGIN_HEADER
\ \
for ( b = p; b < (FT_Bytes)p + len; b++ ) \ for ( b = p; b < (FT_Bytes)p + len; b++ ) \
if ( 0x40 < *b && *b < 0x7E ) \ if ( 0x40 < *b && *b < 0x7E ) \
FT_TRACE1(("%c", *b)) ; \ FT_TRACE1(("%c", *b)); \
else \ else \
FT_TRACE1(("\\x%02x", *b)) ; \ FT_TRACE1(("\\x%02x", *b)); \
} \ } \
FT_END_STMNT FT_END_STMNT

View File

@ -152,7 +152,7 @@
FT_Bytes limit, FT_Bytes limit,
GXV_Validator gxvalid ) GXV_Validator gxvalid )
{ {
FT_Bytes p = table ; FT_Bytes p = table;
FT_Bytes wdc_end = table + GXV_JUST_DATA( wdc_offset_max ); FT_Bytes wdc_end = table + GXV_JUST_DATA( wdc_offset_max );
FT_UInt i; FT_UInt i;

View File

@ -192,7 +192,7 @@
GXV_NAME_ENTER( "validating contents of substitutionTable" ); GXV_NAME_ENTER( "validating contents of substitutionTable" );
for ( i = 0; i < num_gids ; i ++ ) for ( i = 0; i < num_gids; i++ )
{ {
FT_UShort dst_gid; FT_UShort dst_gid;

View File

@ -111,7 +111,7 @@
GXV_LIMIT_CHECK( nTracks * ( 4 + 2 + 2 ) ); GXV_LIMIT_CHECK( nTracks * ( 4 + 2 + 2 ) );
for ( i = 0; i < nTracks; i ++ ) for ( i = 0; i < nTracks; i++ )
{ {
p = table + i * ( 4 + 2 + 2 ); p = table + i * ( 4 + 2 + 2 );
track = FT_NEXT_LONG( p ); track = FT_NEXT_LONG( p );
@ -125,7 +125,7 @@
gxv_sfntName_validate( nameIndex, 256, 32767, gxvalid ); gxv_sfntName_validate( nameIndex, 256, 32767, gxvalid );
for ( j = i; j < nTracks; j ++ ) for ( j = i; j < nTracks; j++ )
{ {
p = table + j * ( 4 + 2 + 2 ); p = table + j * ( 4 + 2 + 2 );
t = FT_NEXT_LONG( p ); t = FT_NEXT_LONG( p );

View File

@ -88,7 +88,7 @@
FT_Int isItalic ) FT_Int isItalic )
{ {
FT_Bytes p = table; FT_Bytes p = table;
FT_UInt i, cnt, table_size ; FT_UInt i, cnt, table_size;
OTV_OPTIONAL_TABLE( Coverage ); OTV_OPTIONAL_TABLE( Coverage );
OTV_OPTIONAL_TABLE( DeviceTableOffset ); OTV_OPTIONAL_TABLE( DeviceTableOffset );

View File

@ -442,7 +442,7 @@ THE SOFTWARE.
int i; int i;
for ( i = 0 ; i < face->nprops && !found; i++ ) for ( i = 0; i < face->nprops && !found; i++ )
{ {
if ( !ft_strcmp( properties[i].name, prop ) ) if ( !ft_strcmp( properties[i].name, prop ) )
found = 1; found = 1;

View File

@ -1245,7 +1245,7 @@
mid = max + 1; mid = max + 1;
/* search in segments before the current segment */ /* search in segments before the current segment */
for ( i = max ; i > 0; i-- ) for ( i = max; i > 0; i-- )
{ {
FT_UInt prev_end; FT_UInt prev_end;
FT_Byte* old_p; FT_Byte* old_p;

View File

@ -551,7 +551,7 @@
for ( i = 0; i < blend->tuplecount; i++ ) for ( i = 0; i < blend->tuplecount; i++ )
{ {
FT_TRACE5(( " [ " )); FT_TRACE5(( " [ " ));
for ( j = 0 ; j < (FT_UInt)gvar_head.axisCount; j++ ) for ( j = 0; j < (FT_UInt)gvar_head.axisCount; j++ )
{ {
blend->tuplecoords[i * gvar_head.axisCount + j] = blend->tuplecoords[i * gvar_head.axisCount + j] =
FT_GET_SHORT() * 4; /* convert to FT_Fixed */ FT_GET_SHORT() * 4; /* convert to FT_Fixed */

View File

@ -398,11 +398,11 @@
for ( j = 0; j < TRICK_SFNT_IDS_NUM_FACES; j++ ) for ( j = 0; j < TRICK_SFNT_IDS_NUM_FACES; j++ )
{ {
if ( !has_cvt && !sfnt_id[j][TRICK_SFNT_ID_cvt].Length ) if ( !has_cvt && !sfnt_id[j][TRICK_SFNT_ID_cvt].Length )
num_matched_ids[j] ++; num_matched_ids[j]++;
if ( !has_fpgm && !sfnt_id[j][TRICK_SFNT_ID_fpgm].Length ) if ( !has_fpgm && !sfnt_id[j][TRICK_SFNT_ID_fpgm].Length )
num_matched_ids[j] ++; num_matched_ids[j]++;
if ( !has_prep && !sfnt_id[j][TRICK_SFNT_ID_prep].Length ) if ( !has_prep && !sfnt_id[j][TRICK_SFNT_ID_prep].Length )
num_matched_ids[j] ++; num_matched_ids[j]++;
if ( num_matched_ids[j] == TRICK_SFNT_IDS_PER_FACE ) if ( num_matched_ids[j] == TRICK_SFNT_IDS_PER_FACE )
return TRUE; return TRUE;
} }

View File

@ -197,7 +197,7 @@
/* encoding of first glyph (1 byte) */ /* encoding of first glyph (1 byte) */
/* encoding of second glyph (1 byte) */ /* encoding of second glyph (1 byte) */
/* offset (little-endian short) */ /* offset (little-endian short) */
for ( ; p < limit ; p += 4 ) for ( ; p < limit; p += 4 )
{ {
kp->index1 = FT_Get_Char_Index( t1_face, p[0] ); kp->index1 = FT_Get_Char_Index( t1_face, p[0] );
kp->index2 = FT_Get_Char_Index( t1_face, p[1] ); kp->index2 = FT_Get_Char_Index( t1_face, p[1] );

View File

@ -326,7 +326,7 @@
/* Point to axes after MM_Var struct */ /* Point to axes after MM_Var struct */
mmvar->namedstyle = NULL; mmvar->namedstyle = NULL;
for ( i = 0 ; i < mmaster.num_axis; ++i ) for ( i = 0; i < mmaster.num_axis; ++i )
{ {
mmvar->axis[i].name = mmaster.axis[i].name; mmvar->axis[i].name = mmaster.axis[i].name;
mmvar->axis[i].minimum = INT_TO_FIXED( mmaster.axis[i].minimum); mmvar->axis[i].minimum = INT_TO_FIXED( mmaster.axis[i].minimum);

View File

@ -67,7 +67,7 @@
"pshinter" ); "pshinter" );
return ( module && pshinter && pshinter->get_globals_funcs ) return ( module && pshinter && pshinter->get_globals_funcs )
? pshinter->get_globals_funcs( module ) ? pshinter->get_globals_funcs( module )
: 0 ; : 0;
} }