shithub: freetype+ttf2subf

Download patch

ref: 255828c8912c580f9ee30a92a757e3b967bc168d
parent: 1d28f697d24207bc3a95ed2a12c43ff66ef6a7b2
author: Oleksandr Chekhovskyi <[email protected]>
date: Thu Dec 1 02:07:22 EST 2016

[autofit] Fix Emscripten crash (patch #9180).

Function calls through pointers must use a matching signature to
work on Emscripten, since such calls are dispatched through lookup
tables grouped by signature.

* src/autofit/aftypes.h (AF_WritingSystem_ApplyHintsFunc): Fix
typedef.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2016-12-01  Oleksandr Chekhovskyi  <[email protected]>
+
+	[autofit] Fix Emscripten crash (patch #9180).
+
+	Function calls through pointers must use a matching signature to
+	work on Emscripten, since such calls are dispatched through lookup
+	tables grouped by signature.
+
+	* src/autofit/aftypes.h (AF_WritingSystem_ApplyHintsFunc): Fix
+	typedef.
+
 2016-11-29  Werner Lemberg  <[email protected]>
 
 	[smooth] Revert previous commit.  Already fixed with 6ca54c64.
--- a/src/autofit/aftypes.h
+++ b/src/autofit/aftypes.h
@@ -221,7 +221,7 @@
   (*AF_WritingSystem_InitHintsFunc)( AF_GlyphHints    hints,
                                      AF_StyleMetrics  metrics );
 
-  typedef void
+  typedef FT_Error
   (*AF_WritingSystem_ApplyHintsFunc)( FT_UInt          glyph_index,
                                       AF_GlyphHints    hints,
                                       FT_Outline*      outline,