mingw-freetype/freetype-2.10.0-internal-outline.patch
2023-02-28 13:02:38 +01:00

75 lines
2.6 KiB
Diff

diff -rupN --no-dereference freetype-2.13.0/include/freetype/ftoutln.h freetype-2.13.0-new/include/freetype/ftoutln.h
--- freetype-2.13.0/include/freetype/ftoutln.h 2023-02-04 15:00:05.000000000 +0100
+++ freetype-2.13.0-new/include/freetype/ftoutln.h 2023-02-28 13:02:23.272972305 +0100
@@ -166,6 +166,15 @@ FT_BEGIN_HEADER
FT_Int numContours,
FT_Outline *anoutline );
+ /*
+ * Kept downstream for ABI compatibility only.
+ * It just throws error now. Remove once soname has been bumped.
+ */
+ FT_EXPORT( FT_Error )
+ FT_Outline_New_Internal( FT_Memory memory,
+ FT_UInt numPoints,
+ FT_Int numContours,
+ FT_Outline *anoutline );
/**************************************************************************
*
@@ -193,6 +202,13 @@ FT_BEGIN_HEADER
FT_Outline_Done( FT_Library library,
FT_Outline* outline );
+ /*
+ * Kept downstream for ABI compatibility only.
+ * It just throws error now. Remove once soname has been bumped.
+ */
+ FT_EXPORT( FT_Error )
+ FT_Outline_Done_Internal( FT_Memory memory,
+ FT_Outline* outline );
/**************************************************************************
*
diff -rupN --no-dereference freetype-2.13.0/src/base/ftoutln.c freetype-2.13.0-new/src/base/ftoutln.c
--- freetype-2.13.0/src/base/ftoutln.c 2023-02-08 21:09:32.000000000 +0100
+++ freetype-2.13.0-new/src/base/ftoutln.c 2023-02-28 13:02:23.272972305 +0100
@@ -301,6 +301,19 @@
/* documentation is in ftoutln.h */
+ /*
+ * Kept downstream for ABI compatibility only.
+ * It just throws error now. Remove once soname has been bumped.
+ */
+ FT_EXPORT_DEF( FT_Error )
+ FT_Outline_New_Internal( FT_Memory memory,
+ FT_UInt numPoints,
+ FT_Int numContours,
+ FT_Outline *anoutline )
+ {
+ return FT_THROW( Unimplemented_Feature );
+ }
+
FT_EXPORT_DEF( FT_Error )
FT_Outline_New( FT_Library library,
FT_UInt numPoints,
@@ -433,6 +446,17 @@
/* documentation is in ftoutln.h */
+ /*
+ * Kept downstream for ABI compatibility only.
+ * It just throws error now. Remove once soname has been bumped.
+ */
+ FT_EXPORT_DEF( FT_Error )
+ FT_Outline_Done_Internal( FT_Memory memory,
+ FT_Outline* outline )
+ {
+ return FT_THROW( Unimplemented_Feature );
+ }
+
FT_EXPORT_DEF( FT_Error )
FT_Outline_Done( FT_Library library,
FT_Outline* outline )