simple minor fix in t1afm.h/t1afm.c
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
diff --git a/src/type1/t1afm.c b/src/type1/t1afm.c
index 80f6536..f619e28 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 39bbc4b..567ed63 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 80f6536..f619e28 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 39bbc4b..567ed63 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,