diff --git a/ChangeLog b/ChangeLog index e42f0cb14..b2400c238 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2016-07-14 Werner Lemberg + + * include/freetype/freetype.h (FT_IS_NAMED_INSTANCE): New macro. + 2016-07-14 Werner Lemberg [sfnt] Fix `face_index' value in `FT_Face' for named instances. diff --git a/docs/CHANGES b/docs/CHANGES index 2d1b54cb8..d2d47cce4 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 45e10c48a..8f104ab96 100644 --- a/include/freetype/freetype.h +++ b/include/freetype/freetype.h @@ -1358,6 +1358,20 @@ FT_BEGIN_HEADER ( (face)->face_flags & FT_FACE_FLAG_MULTIPLE_MASTERS ) + /************************************************************************* + * + * @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: