Created attachment 55073 [details] [review] add -subst option to pdffonts It would be useful to provide a way to find the fontname and filename of the fonts used to substitute for non embedded fonts. The attached patch adds a "-subst" option that shows for each non embedded font: - pdf font name - full name of substitute font - file name of substitute font
The spacing in the GlobalParams::getDisplayFont looks a bit broken, + if (res == FcResultMatch && s2) { + substName = new GooString((char*)s2); + } else { the if has spaces but the else has tabs Also i'd just add the subst info all the time, why a switch?
(In reply to comment #1) > Also i'd just add the subst info all the time, why a switch? I thought it was better not to clutter the default output with too much information. There is also the question of how to format the output. Do you want to add the extra info (substitute fontname and filename) to the end of each line which is going to make the each line very long. Or can the info can be put on the next line or listed separately at the end of the current output?
Yeah, length is a concern... ok, let's do it your way then, update the manpage and commit it to master.
I've fixed the spacing, updated the man page and pushed to master.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.