shithub: freetype+ttf2subf

Download patch

ref: 963778153e52bc2ccfb3b826345839c1eacd38f8
parent: 44cb6fe8162588851dbb8a23e69a88b85e92fb56
author: Werner Lemberg <[email protected]>
date: Wed May 15 02:18:24 EDT 2002

Adding a driver for Type42 fonts written by Roberto Alameda
<[email protected]>.

* 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.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2002-05-14  Werner Lemberg  <[email protected]>
+
+	Adding a driver for Type42 fonts written by Roberto Alameda
+	<[email protected]>.
+
+	* 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  <[email protected]>
 
 	* src/sfnt/ttload.c (TT_LookUp_Table): Protect against tables
--- a/include/freetype/config/ftmodule.h
+++ b/include/freetype/config/ftmodule.h
@@ -10,6 +10,7 @@
 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)
 
--- 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,15 +100,19 @@
 
 
 #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
 
+
   /**********************************************************************/
   /*                                                                    */
   /*                         execution control                          */
   /*                                                                    */
   /**********************************************************************/
+
 
 #include <setjmp.h>
 
--- 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 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