diff options
author | Werner Lemberg <wl@gnu.org> | 2011-08-30 07:42:19 +0200 |
---|---|---|
committer | Werner Lemberg <wl@gnu.org> | 2011-08-30 07:42:19 +0200 |
commit | 51ca771ff6c1146870220c76178eaeecc2c1410b (patch) | |
tree | 16176140ab37588d1fe2eb6922279acb9adae8a5 | |
parent | 35ab70c19c15b8fc75f7f54e17a773818aed2354 (diff) | |
download | freetype2-51ca771ff6c1146870220c76178eaeecc2c1410b.tar.gz |
Better tracing of metrics.
* src/base/ftobjs.c (FT_Select_Metrics, FT_Request_Metrics):
Decorate with FT_TRACE.
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | src/base/ftobjs.c | 24 |
2 files changed, 31 insertions, 0 deletions
@@ -1,3 +1,10 @@ +2011-08-30 Werner Lemberg <wl@gnu.org> + + Better tracing of metrics. + + * src/base/ftobjs.c (FT_Select_Metrics, FT_Request_Metrics): + Decorate with FT_TRACE. + 2011-08-25 Werner Lemberg <wl@gnu.org> [cff] Better tracing of the parsing process. diff --git a/src/base/ftobjs.c b/src/base/ftobjs.c index 5069afb2c..7649e9380 100644 --- a/src/base/ftobjs.c +++ b/src/base/ftobjs.c @@ -2613,6 +2613,18 @@ metrics->height = bsize->height << 6; metrics->max_advance = bsize->x_ppem; } + + FT_TRACE5(( "FT_Select_Metrics:\n" )); + FT_TRACE5(( " x scale: %d (%f)\n", + metrics->x_scale, metrics->x_scale / 65536.0 )); + FT_TRACE5(( " y scale: %d (%f)\n", + metrics->y_scale, metrics->y_scale / 65536.0 )); + FT_TRACE5(( " ascender: %f\n", metrics->ascender / 64.0 )); + FT_TRACE5(( " descender: %f\n", metrics->descender / 64.0 )); + FT_TRACE5(( " height: %f\n", metrics->height / 64.0 )); + FT_TRACE5(( " max advance: %f\n", metrics->max_advance / 64.0 )); + FT_TRACE5(( " x ppem: %d\n", metrics->x_ppem )); + FT_TRACE5(( " y ppem: %d\n", metrics->y_ppem )); } @@ -2721,6 +2733,18 @@ metrics->x_scale = 1L << 16; metrics->y_scale = 1L << 16; } + + FT_TRACE5(( "FT_Select_Metrics:\n" )); + FT_TRACE5(( " x scale: %d (%f)\n", + metrics->x_scale, metrics->x_scale / 65536.0 )); + FT_TRACE5(( " y scale: %d (%f)\n", + metrics->y_scale, metrics->y_scale / 65536.0 )); + FT_TRACE5(( " ascender: %f\n", metrics->ascender / 64.0 )); + FT_TRACE5(( " descender: %f\n", metrics->descender / 64.0 )); + FT_TRACE5(( " height: %f\n", metrics->height / 64.0 )); + FT_TRACE5(( " max advance: %f\n", metrics->max_advance / 64.0 )); + FT_TRACE5(( " x ppem: %d\n", metrics->x_ppem )); + FT_TRACE5(( " y ppem: %d\n", metrics->y_ppem )); } |