mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-21 06:51:01 +01:00
[hb-shape/view] Print table length in --list-tables
This commit is contained in:
1 parent
880d65c905
commit
cc6a9bfa6f
1 file changed
+7
-1
@@ -137,7 +137,13 @@ static G_GNUC_NORETURN void _list_tables (hb_face_t *face)
|
||||
|
||||
for (unsigned i = 0; i < count; i++)
|
||||
{
|
||||
printf ("%c%c%c%c\n", HB_UNTAG (tags[i]));
|
||||
hb_tag_t tag = tags[i];
|
||||
|
||||
hb_blob_t *blob = hb_face_reference_table (face, tag);
|
||||
|
||||
printf ("%c%c%c%c: %8u bytes\n", HB_UNTAG (tag), hb_blob_get_length (blob));
|
||||
|
||||
hb_blob_destroy (blob);
|
||||
}
|
||||
|
||||
free (tags);
|
||||
|
||||
Reference in new issue
Block a user