shithub: freetype+ttf2subf

Download patch

ref: f06456a82d5751d637a7e2cea21e4c71d2c8d2db
parent: c3083e459584d0e8481fa2401232c8a3145fae4b
author: Werner Lemberg <[email protected]>
date: Sat Oct 7 06:35:11 EDT 2017

[type1] Minor code shuffling.

* src/type1/t1load.c (T1_Set_MM_Blend): Make it a wrapper of...
(t1_set_mm_blend): ...this new function.
(T1_Set_MM_Design): Use `t1_set_mm_blend'.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2017-10-07  Werner Lemberg  <[email protected]>
+
+	[type1] Minor code shuffling.
+
+	* src/type1/t1load.c (T1_Set_MM_Blend): Make it a wrapper of...
+	(t1_set_mm_blend): ...this new function.
+	(T1_Set_MM_Design): Use `t1_set_mm_blend'.
+
 2017-10-05  Werner Lemberg  <[email protected]>
 
 	* src/base/ftobjs.c (ft_glyphslot_preset_bitmap): Fix integer
--- a/src/type1/t1load.c
+++ b/src/type1/t1load.c
@@ -366,8 +366,8 @@
   }
 
 
-  FT_LOCAL_DEF( FT_Error )
-  T1_Set_MM_Blend( T1_Face    face,
+  static FT_Error
+  t1_set_mm_blend( T1_Face    face,
                    FT_UInt    num_coords,
                    FT_Fixed*  coords )
   {
@@ -413,6 +413,15 @@
 
 
   FT_LOCAL_DEF( FT_Error )
+  T1_Set_MM_Blend( T1_Face    face,
+                   FT_UInt    num_coords,
+                   FT_Fixed*  coords )
+  {
+    return t1_set_mm_blend( face, num_coords, coords );
+  }
+
+
+  FT_LOCAL_DEF( FT_Error )
   T1_Get_MM_Blend( T1_Face    face,
                    FT_UInt    num_coords,
                    FT_Fixed*  coords )
@@ -518,7 +527,7 @@
       final_blends[n] = the_blend;
     }
 
-    return T1_Set_MM_Blend( face, blend->num_axis, final_blends );
+    return t1_set_mm_blend( face, blend->num_axis, final_blends );
   }