ref: 735e5abb7bbad8e74e56228176a7d93b345f071b
parent: 3ad8f355371d495fc0897a5217a48c1bf4c4a982
author: Werner Lemberg <[email protected]>
date: Fri May 27 06:22:42 EDT 2011
[autofit] Improve tracing of hinting process. * src/autofit/aflatin.c (af_latin_hint_edges): Add tracing message `ADJUST'.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,17 @@
+2011-05-27 Werner Lemberg <[email protected]>
+
+ [autofit] Improve tracing of hinting process.
+
+ * src/autofit/aflatin.c (af_latin_hint_edges): Add tracing message
+ `ADJUST'.
+
+2011-05-26 Werner Lemberg <[email protected]>
+
+ [autofit] Fix trace message.
+
+ * src/autofit/aflatin.c (af_latin_hint_edges): Show correct value in
+ tracing message.
+
2011-05-24 Daniel Zimmermann <[email protected]>
Reduce warnings for MS Visual Studio 2010.
--- a/src/autofit/aflatin.c
+++ b/src/autofit/aflatin.c
@@ -1968,7 +1968,13 @@
(AF_Edge_Flags)edge2->flags );
if ( edge2->flags & AF_EDGE_DONE )
+ {
+ FT_TRACE5(( " ADJUST: edge %d (pos=%.2f) moved to %.2f\n",
+ edge - edges, edge->pos / 64.0,
+ ( edge2->pos - cur_len ) / 64.0 ));
+
edge->pos = edge2->pos - cur_len;
+ }
else if ( cur_len < 96 )
{
@@ -2149,11 +2155,11 @@
}
else if ( !anchor )
{
+ edge->pos = FT_PIX_ROUND( edge->opos );
+ anchor = edge;
FT_TRACE5(( " SERIF_ANCHOR: edge %d (opos=%.2f)"
" snapped to (%.2f)\n",
edge-edges, edge->opos / 64.0, edge->pos / 64.0 ));
- edge->pos = FT_PIX_ROUND( edge->opos );
- anchor = edge;
}
else
{