Commit 963778153e52bc2ccfb3b826345839c1eacd38f8

Werner Lemberg 2002-05-15T06:18:24

Adding a driver for Type42 fonts written by Roberto Alameda <ojancano@geekmail.de>. * src/type42/*: New driver. * include/freetype/config/ftmodule.h, src/Jamfile: Updated. * include/freetype/config/ftstdlib.h (ft_xdigit, ft_memcmp, ft_atoi): New aliases for xdigit, memcmp, and atoi, respectively.

diff --git a/ChangeLog b/ChangeLog
index 0537d5b..3e668bb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2002-05-14  Werner Lemberg  <wl@gnu.org>
+
+	Adding a driver for Type42 fonts written by Roberto Alameda
+	<ojancano@geekmail.de>.
+
+	* src/type42/*: New driver.
+	* include/freetype/config/ftmodule.h, src/Jamfile: Updated.
+	* include/freetype/config/ftstdlib.h (ft_xdigit, ft_memcmp,
+	ft_atoi): New aliases for xdigit, memcmp, and atoi, respectively.
+
 2002-05-12  Owen Taylor  <otaylor@redhat.com>
 
 	* src/sfnt/ttload.c (TT_LookUp_Table): Protect against tables
diff --git a/include/freetype/config/ftmodule.h b/include/freetype/config/ftmodule.h
index 2ca7fa7..d4b3b71 100644
--- a/include/freetype/config/ftmodule.h
+++ b/include/freetype/config/ftmodule.h
@@ -10,6 +10,7 @@ FT_USE_MODULE(sfnt_module_class)
 FT_USE_MODULE(ft_smooth_renderer_class)
 FT_USE_MODULE(tt_driver_class)
 FT_USE_MODULE(t1_driver_class)
+FT_USE_MODULE(t42_driver_class)
 FT_USE_MODULE(pfr_driver_class)
 FT_USE_MODULE(winfnt_driver_class)
 
diff --git a/include/freetype/config/ftstdlib.h b/include/freetype/config/ftstdlib.h
index fcb46ba..a2a678d 100644
--- a/include/freetype/config/ftstdlib.h
+++ b/include/freetype/config/ftstdlib.h
@@ -59,6 +59,7 @@
 
 
 #include <limits.h>
+
 #define FT_UINT_MAX   UINT_MAX
 #define FT_ULONG_MAX  ULONG_MAX
 
@@ -71,12 +72,15 @@
 
 
 #include <ctype.h>
+
 #define ft_isalnum  isalnum
 #define ft_isupper  isupper
 #define ft_islower  islower
+#define ft_xdigit   isxdigit
 
 
 #include <string.h>
+
 #define ft_strlen   strlen
 #define ft_strcmp   strcmp
 #define ft_strncmp  strncmp
@@ -85,6 +89,7 @@
 #define ft_strncpy  strncpy
 #define ft_memset   memset
 #define ft_memmove  memmove
+#define ft_memcmp   memcmp
 
 
   /**********************************************************************/
@@ -95,8 +100,11 @@
 
 
 #include <stdlib.h>
+
 #define ft_qsort  qsort
-#define ft_exit   exit    /* only used to exit from un-handled exceptions */
+#define ft_exit   exit    /* only used to exit from unhandled exceptions */
+
+#define ft_atoi   atoi
 
 
   /**********************************************************************/
@@ -105,6 +113,7 @@
   /*                                                                    */
   /**********************************************************************/
 
+
 #include <setjmp.h>
 
 #define ft_jmp_buf  jmp_buf   /* note: this cannot be a typedef since */
diff --git a/src/Jamfile b/src/Jamfile
index b2f5d6e..f1b3b9b 100644
--- a/src/Jamfile
+++ b/src/Jamfile
@@ -1,4 +1,4 @@
-# FreeType 2 src Jamfile (c) 2001 David Turner
+# FreeType 2 src Jamfile (c) 2001, 2002 David Turner
 #
 
 SubDir  FT2_TOP src ;
@@ -29,6 +29,7 @@ SubInclude  FT2_TOP src sfnt ;
 SubInclude  FT2_TOP src smooth ;
 SubInclude  FT2_TOP src truetype ;
 SubInclude  FT2_TOP src type1 ;
+SubInclude  FT2_TOP src type42 ;
 SubInclude  FT2_TOP src winfonts ;
 
 # end of src Jamfile