shithub: freetype+ttf2subf

Download patch

ref: e09fe4cc790086c2282313aa968dfef4a4196f91
parent: e496cb2980978be5b4b7a3721135a9d6a5d68aa8
author: Nikhil Ramakrishnan <[email protected]>
date: Tue Jun 18 15:58:55 EDT 2019

* src/sfnt/sfwoff2.c: #undef macros.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2019-08-27  Nikhil Ramakrishnan  <[email protected]>
 
+	* src/sfnt/sfwoff2.c: #undef macros.
+
+2019-08-27  Nikhil Ramakrishnan  <[email protected]>
+
 	[woff2] Read table and collection directory.
 
 	* include/freetype/internal/wofftypes.h (WOFF2_TtcFontRec): New
--- a/src/sfnt/sfwoff2.c
+++ b/src/sfnt/sfwoff2.c
@@ -242,7 +242,7 @@
          ( woff2.privOffset >= woff2.length )                       ||
          ( woff2.length - woff2.privOffset < woff2.privLength )     )
     {
-      FT_ERROR(( "woff_font_open: invalid WOFF2 header\n" ));
+      FT_ERROR(( "woff2_font_open: invalid WOFF2 header\n" ));
       return FT_THROW( Invalid_Table );
     }
     /* DEBUG - Remove later. */
@@ -451,6 +451,11 @@
   Exit:
     return error;
   }
+
+
+#undef READ_255USHORT
+#undef READ_BASE128
+#undef ROUND4
 
 
 /* END */