* include/freetype/freetype.h (FT_IS_NAMED_INSTANCE): New macro.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
diff --git a/ChangeLog b/ChangeLog
index e42f0cb..b2400c2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2016-07-14 Werner Lemberg <wl@gnu.org>
+ * include/freetype/freetype.h (FT_IS_NAMED_INSTANCE): New macro.
+
+2016-07-14 Werner Lemberg <wl@gnu.org>
+
[sfnt] Fix `face_index' value in `FT_Face' for named instances.
* src/sfnt/sfobjc.s (sfnt_init_face): Don't strip off higher 16bits.
diff --git a/docs/CHANGES b/docs/CHANGES
index 2d1b54c..d2d47cc 100644
--- a/docs/CHANGES
+++ b/docs/CHANGES
@@ -9,6 +9,12 @@ CHANGES BETWEEN 2.6.5 and 2.7
documented.
+ II. MISCELLANEOUS
+
+ - A new macro `FT_IS_NAMED_INSTANCE' to test whether a given face
+ is a named instance.
+
+
======================================================================
CHANGES BETWEEN 2.6.4 and 2.6.5
diff --git a/include/freetype/freetype.h b/include/freetype/freetype.h
index 45e10c4..8f104ab 100644
--- a/include/freetype/freetype.h
+++ b/include/freetype/freetype.h
@@ -1361,6 +1361,20 @@ FT_BEGIN_HEADER
/*************************************************************************
*
* @macro:
+ * FT_IS_NAMED_INSTANCE( face )
+ *
+ * @description:
+ * A macro that returns true whenever a face object is a named instance
+ * of a GX variation font.
+ *
+ */
+#define FT_IS_NAMED_INSTANCE( face ) \
+ ( (face)->face_index & 0x7FFF0000L )
+
+
+ /*************************************************************************
+ *
+ * @macro:
* FT_IS_CID_KEYED( face )
*
* @description: