ref: ff655437e3090af23ed4d79e7782e7ccab4498e6
parent: ee3f36f6b3880f7652488169dd27292c5e7c1a76
author: Werner Lemberg <[email protected]>
date: Thu Jul 14 11:01:55 EDT 2016
* include/freetype/freetype.h (FT_IS_NAMED_INSTANCE): New macro.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2016-07-14 Werner Lemberg <[email protected]>
+ * include/freetype/freetype.h (FT_IS_NAMED_INSTANCE): New macro.
+
+2016-07-14 Werner Lemberg <[email protected]>
+
[sfnt] Fix `face_index' value in `FT_Face' for named instances.
* src/sfnt/sfobjc.s (sfnt_init_face): Don't strip off higher 16bits.
--- a/docs/CHANGES
+++ b/docs/CHANGES
@@ -9,6 +9,12 @@
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
--- a/include/freetype/freetype.h
+++ b/include/freetype/freetype.h
@@ -1361,6 +1361,20 @@
/*************************************************************************
*
* @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: