* include/freetype/freetype.h (FT_IS_NAMED_INSTANCE): New macro.

This commit is contained in:
Werner Lemberg 2016-07-14 15:01:55 +02:00
parent ee3f36f6b3
commit ff655437e3
3 changed files with 24 additions and 0 deletions

View File

@ -1,3 +1,7 @@
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.

View File

@ -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

View File

@ -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: