[sfnt] While tracing, output table checksums also.

* src/sfnt/ttload.c (tt_face_load_font_dir): Do it.
This commit is contained in:
Werner Lemberg 2010-11-17 11:47:53 +01:00
parent ac09390afc
commit 05012ad9c9
2 changed files with 13 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2010-11-17 Werner Lemberg <wl@gnu.org>
[sfnt] While tracing, output table checksums also.
* src/sfnt/ttload.c (tt_face_load_font_dir): Do it.
2010-11-04 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
[UVS] Fix find_variant_selector_charmap(), Savannah bug #31545.

View File

@ -384,6 +384,10 @@
entry = face->dir_tables;
FT_TRACE2(( "\n"
" tag offset length checksum\n"
" ----------------------------------\n" ));
for ( nn = 0; nn < sfnt.num_tables; nn++ )
{
entry->Tag = FT_GET_TAG4();
@ -396,13 +400,14 @@
continue;
else
{
FT_TRACE2(( " %c%c%c%c - %08lx - %08lx\n",
FT_TRACE2(( " %c%c%c%c %08lx %08lx %08lx\n",
(FT_Char)( entry->Tag >> 24 ),
(FT_Char)( entry->Tag >> 16 ),
(FT_Char)( entry->Tag >> 8 ),
(FT_Char)( entry->Tag ),
entry->Offset,
entry->Length ));
entry->Length,
entry->CheckSum ));
entry++;
}
}