shithub: freetype+ttf2subf

Download patch

ref: 278f64b3309054941a8e8acc9a65aec3b6b054cd
parent: 371f5c3b9d49fe82b05d763198a7606f9c9c689d
author: Werner Lemberg <[email protected]>
date: Mon Aug 26 16:20:03 EDT 2013

[autofit] Report used script while hinting a glyph.

* src/autofit/afcjk.c (af_cjk_hint_edges), src/autofit/aflatin.c
(af_latin_hint_edges): Implement it.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2013-08-26  Werner Lemberg  <[email protected]>
 
+	[autofit] Report used script while hinting a glyph.
+
+	* src/autofit/afcjk.c (af_cjk_hint_edges), src/autofit/aflatin.c
+	(af_latin_hint_edges): Implement it.
+
+2013-08-26  Werner Lemberg  <[email protected]>
+
 	[autofit] Add support for Hebrew script.
 
 	* src/autofit/afblue.dat: Add blue strings for Hebrew.
--- a/src/autofit/afcjk.c
+++ b/src/autofit/afcjk.c
@@ -1665,9 +1665,11 @@
 #endif
 
 
+    FT_TRACE5(( "cjk %s edge hinting (script %d)\n",
+                dim == AF_DIMENSION_VERT ? "horizontal" : "vertical",
+                hints->metrics->script_class->script ));
+
     /* we begin by aligning all stems relative to the blue zone */
-    FT_TRACE5(( "cjk %s edge hinting\n",
-          dim == AF_DIMENSION_HORZ ? "vertical" : "horizontal" ));
 
     if ( AF_HINTS_DO_BLUES( hints ) )
     {
--- a/src/autofit/aflatin.c
+++ b/src/autofit/aflatin.c
@@ -1897,8 +1897,9 @@
 #endif
 
 
-    FT_TRACE5(( "latin %s edge hinting\n",
-                dim == AF_DIMENSION_VERT ? "horizontal" : "vertical" ));
+    FT_TRACE5(( "latin %s edge hinting (script %d)\n",
+                dim == AF_DIMENSION_VERT ? "horizontal" : "vertical",
+                hints->metrics->script_class->script ));
 
     /* we begin by aligning all stems relative to the blue zone */
     /* if needed -- that's only for horizontal edges            */