freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[freetype2] master 255828c: [autofit] Fix Emscripten crash (patch #9180)


From: Werner LEMBERG
Subject: [freetype2] master 255828c: [autofit] Fix Emscripten crash (patch #9180).
Date: Thu, 1 Dec 2016 06:08:48 +0000 (UTC)

branch: master
commit 255828c8912c580f9ee30a92a757e3b967bc168d
Author: Oleksandr Chekhovskyi <address@hidden>
Commit: Werner Lemberg <address@hidden>

    [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.
---
 ChangeLog             |   11 +++++++++++
 src/autofit/aftypes.h |    2 +-
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index e8324e3..2387cf1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2016-12-01  Oleksandr Chekhovskyi  <address@hidden>
+
+       [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  <address@hidden>
 
        [smooth] Revert previous commit.  Already fixed with 6ca54c64.
diff --git a/src/autofit/aftypes.h b/src/autofit/aftypes.h
index ef62043..61b6b12 100644
--- a/src/autofit/aftypes.h
+++ b/src/autofit/aftypes.h
@@ -221,7 +221,7 @@ extern void*  _af_debug_hints;
   (*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,



reply via email to

[Prev in Thread] Current Thread [Next in Thread]