[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.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
diff --git a/ChangeLog b/ChangeLog
index 25689f7..c58e747 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2013-08-26 Werner Lemberg <wl@gnu.org>
+ [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 <wl@gnu.org>
+
[autofit] Add support for Hebrew script.
* src/autofit/afblue.dat: Add blue strings for Hebrew.
diff --git a/src/autofit/afcjk.c b/src/autofit/afcjk.c
index 740a384..bcda652 100644
--- 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 ) )
{
diff --git a/src/autofit/aflatin.c b/src/autofit/aflatin.c
index 21439ce..dd925e8 100644
--- 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 */