[sfnt] Fix face_index' value in FT_Face' for named instances.

* src/sfnt/sfobjc.s (sfnt_init_face): Don't strip off higher 16bits.
This commit is contained in:
Werner Lemberg 2016-07-14 10:25:20 +02:00
parent 631e218147
commit ee3f36f6b3
3 changed files with 19 additions and 1 deletions

View File

@ -1,3 +1,9 @@
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.
2016-07-14 Werner Lemberg <wl@gnu.org>
* src/truetype/ttgxvar.c (TT_Vary_Apply_Glyph_Deltas): Fix tracing.

View File

@ -1,4 +1,16 @@
CHANGES BETWEEN 2.6.5 and 2.7
I. IMPORTANT BUG FIXES
- After loading a named instance of a GX variation font, the
`face_index' value in the returned `FT_Face' structure now
correctly holds the named instance index in the upper 16bits as
documented.
======================================================================
CHANGES BETWEEN 2.6.4 and 2.6.5
I. IMPORTANT BUG FIXES

View File

@ -977,7 +977,7 @@
#endif
face->root.num_faces = face->ttc_header.count;
face->root.face_index = face_index;
face->root.face_index = face_instance_index;
return error;
}