shithub: freetype+ttf2subf

Download patch

ref: 5485a34c77b898f50ac0562bac2e859e76f95b43
parent: b459882804836557bf6a8ccea45421fd87f36097
author: Werner Lemberg <wl@gnu.org>
date: Sat Jun 4 02:57:32 EDT 2016

[truetype] Fix missed test for named instances (#48122).

* src/truetype/ftobjs.c (Mac_Read_sfnt_Resource): Implement.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,10 @@
-2016-05-17  Nikolaus Waxweiler  <madigens@gmail.com>
+2016-06-04  Werner Lemberg  <wl@gnu.org>
+
+	[truetype] Fix missed test for named instances (#48122).
+
+	* src/truetype/ftobjs.c (Mac_Read_sfnt_Resource): Implement.
+
+2016-05-31  Nikolaus Waxweiler  <madigens@gmail.com>
 
 	[truetype] Let SHPIX move points in the twilight zone in v40.
 
--- a/src/base/ftobjs.c
+++ b/src/base/ftobjs.c
@@ -1791,8 +1791,8 @@
     FT_Long    face_index_in_resource = 0;
 
 
-    if ( face_index == -1 )
-      face_index = 0;
+    if ( face_index < 0 )
+      face_index = -face_index - 1;
     if ( face_index >= resource_cnt )
       return FT_THROW( Cannot_Open_Resource );
 
--