From 421bacf56744d00db7ccef93daa119ab8ea4ac55 Mon Sep 17 00:00:00 2001 From: John-Mark Bell Date: Sun, 15 Aug 2021 03:47:10 +0100 Subject: Make dump of unicode maps optional Add a verbose flag to rufl_dump_state() and use it to control whether to dump the individual unicode maps generated when using a non-UCS Font Manager. Change rufl_test to not dump this state (ordinarily, anyway) as it is generally uninteresting and highly verbose. --- src/rufl_dump_state.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/rufl_dump_state.c') diff --git a/src/rufl_dump_state.c b/src/rufl_dump_state.c index 860d57e..f466333 100644 --- a/src/rufl_dump_state.c +++ b/src/rufl_dump_state.c @@ -18,7 +18,7 @@ static void rufl_dump_unicode_map(struct rufl_unicode_map *umap); * Dump the internal library state to stdout. */ -void rufl_dump_state(void) +void rufl_dump_state(bool verbose) { unsigned int i, j; @@ -32,7 +32,7 @@ void rufl_dump_state(void) } else { printf(" (no charset table)\n"); } - if (rufl_font_list[i].umap) { + if (verbose && rufl_font_list[i].umap) { for (j = 0; j < rufl_font_list[i].num_umaps; j++) { struct rufl_unicode_map *map = rufl_font_list[i].umap + j; -- cgit v1.2.3