Moves print_cmap_encodings and print_glyph_names out of dump_ttf and into the main function. This allows the --encodings and --glyph-names options to work for WOFF and WOFF2 fonts.
Incidentally, this change also fixes an issue where encodings and glyph names are repeated n times in TTC fonts, where n is the number of fonts in the collection.
Resolves #33.
Moves
print_cmap_encodings
andprint_glyph_names
out ofdump_ttf
and into the main function. This allows the--encodings
and--glyph-names
options to work for WOFF and WOFF2 fonts.Incidentally, this change also fixes an issue where encodings and glyph names are repeated
n
times in TTC fonts, wheren
is the number of fonts in the collection.