GNOME Bugzilla – Bug 675925
Include substitute font name and file in font list
Last modified: 2012-05-19 07:44:27 UTC
The attached patch displays the name and filename of substitute fonts in the document font list. This helps the user resolve issues with substitution of non embedded fonts by showing which font poppler has substituted. The patch depends on new api in poppler 0.20.
Created attachment 213906 [details] [review] include substitute font name in font list
Review of attachment 213906 [details] [review]: Thanks for the patch. ::: backend/pdf/ev-poppler.cc @@ +1061,3 @@ + + printf("subs: %s\n", substitute); + printf("file: %s\n", filename); I guess you forgot to remove these printfs :-) @@ +1063,3 @@ + printf("file: %s\n", filename); + if (substitute && filename) + details = g_markup_printf_escaped ("%s\nEncoding: %s\n%s, substituting with <b>%s</b>\n(%s)", type, encoding, embedded, substitute, filename); This should be marked for translation @@ +1065,3 @@ + details = g_markup_printf_escaped ("%s\nEncoding: %s\n%s, substituting with <b>%s</b>\n(%s)", type, encoding, embedded, substitute, filename); + else + details = g_markup_printf_escaped ("%s\nEncoding: %s\n%s", type, encoding, embedded); Ditto.
Created attachment 213950 [details] [review] include substitute font name in font list updated patch
Review of attachment 213950 [details] [review]: Pushed to git master. Thanks!