From e595014a64c1ed5adaf095e4671af3b0a6f98a1b Mon Sep 17 00:00:00 2001 From: David Turner Date: Tue, 29 Feb 2000 17:14:02 +0000 Subject: [PATCH] simple minor fix in t1afm.h/t1afm.c --- src/type1/t1afm.c | 2 +- src/type1/t1afm.h | 4 ++-- src/type1z/t1afm.c | 2 +- src/type1z/t1afm.h | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/type1/t1afm.c b/src/type1/t1afm.c index 80f65362f..f619e28e5 100644 --- a/src/type1/t1afm.c +++ b/src/type1/t1afm.c @@ -73,7 +73,7 @@ { FT_Byte* p = *start; int sum = 0; - int sign; + int sign = 1; /* skip everything that is not a number */ while ( p < limit && (*p < '0' || *p > '9') ) diff --git a/src/type1/t1afm.h b/src/type1/t1afm.h index 39bbc4bea..567ed6325 100644 --- a/src/type1/t1afm.h +++ b/src/type1/t1afm.h @@ -31,8 +31,8 @@ typedef struct T1_AFM_ LOCAL_DEF -FT_Error T1_Read_AFM( FT_Stream stream, - FT_Face face ); +FT_Error T1_Read_AFM( FT_Face face, + FT_Stream stream ); LOCAL_DEF void T1_Done_AFM( FT_Memory memory, diff --git a/src/type1z/t1afm.c b/src/type1z/t1afm.c index 80f65362f..f619e28e5 100644 --- a/src/type1z/t1afm.c +++ b/src/type1z/t1afm.c @@ -73,7 +73,7 @@ { FT_Byte* p = *start; int sum = 0; - int sign; + int sign = 1; /* skip everything that is not a number */ while ( p < limit && (*p < '0' || *p > '9') ) diff --git a/src/type1z/t1afm.h b/src/type1z/t1afm.h index 39bbc4bea..567ed6325 100644 --- a/src/type1z/t1afm.h +++ b/src/type1z/t1afm.h @@ -31,8 +31,8 @@ typedef struct T1_AFM_ LOCAL_DEF -FT_Error T1_Read_AFM( FT_Stream stream, - FT_Face face ); +FT_Error T1_Read_AFM( FT_Face face, + FT_Stream stream ); LOCAL_DEF void T1_Done_AFM( FT_Memory memory,