shithub: freetype+ttf2subf

Download patch

ref: dd7028c46e1b812e88ea0c965a52de409ad35ae7
parent: f4d1c11faa116daad655b50828a434babbdaed2a
author: Werner Lemberg <[email protected]>
date: Wed Mar 11 03:45:05 EDT 2015

Rename `FT_XFREE86_H' to `FT_FONT_FORMATS_H'.

* include/config/ftheader.h: Implement it.
* src/base/ftfntfmt.c, docs/CHANGES: Updated.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2015-03-11  Werner Lemberg  <[email protected]>
 
+	[base] Rename `FT_XFREE86_H' to `FT_FONT_FORMATS_H'.
+
+	* include/config/ftheader.h: Implement it.
+	* src/base/ftfntfmt.c, docs/CHANGES: Updated.
+
+2015-03-11  Werner Lemberg  <[email protected]>
+
 	[base] Rename `FT_Get_X11_Font_Format' to `FT_Get_Font_Format'.
 
 	* include/ftfntfmt.h, src/base/ftfntfmt.c: Implement it.
--- a/docs/CHANGES
+++ b/docs/CHANGES
@@ -43,6 +43,10 @@
       function.  For backwards compatibility, the old function name is
       still available.
 
+      Additionally, the header  file macro for this  function has been
+      renamed to  `FT_FONT_FORMATS_H' (the old name  `FT_XFREE86_H' is
+      retained for backwards compatibility).
+
 
 ======================================================================
 
--- a/include/config/ftheader.h
+++ b/include/config/ftheader.h
@@ -710,14 +710,16 @@
   /*************************************************************************
    *
    * @macro:
-   *   FT_XFREE86_H
+   *   FT_FONT_FORMATS_H
    *
    * @description:
    *   A macro used in #include statements to name the file containing the
-   *   FreeType~2 API which provides functions specific to the XFree86 and
-   *   X.Org X11 servers.
+   *   FreeType~2 API which provides functions specific to font formats.
    */
-#define FT_XFREE86_H  <ftfntfmt.h>
+#define FT_FONT_FORMATS_H  <ftfntfmt.h>
+
+  /* deprecated */
+#define FT_XFREE86_H  FT_FONT_FORMATS_H
 
 
   /*************************************************************************
--- a/src/base/ftfntfmt.c
+++ b/src/base/ftfntfmt.c
@@ -17,7 +17,7 @@
 
 
 #include <ft2build.h>
-#include FT_XFREE86_H
+#include FT_FONT_FORMATS_H
 #include FT_INTERNAL_OBJECTS_H
 #include FT_SERVICE_XFREE86_NAME_H