[Poppler-bugs] [Bug 45659] Fails to display text of some documents
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Mon Feb 13 01:04:26 PST 2012
https://bugs.freedesktop.org/show_bug.cgi?id=45659
--- Comment #7 from Adrian Johnson <ajohnson at redneon.com> 2012-02-13 01:04:26 PST ---
I can reproduce the problem by putting that font in ~/.fonts. It turns out that fc-match is not the best way finding the substitution font. For example:
> fc-match Arial
LiberationSans-Regular.ttf: "Liberation Sans" "Regular"
But pdfonts in git master has a new option to show the substitution font. Using this feature shows a different font:
> pdffonts -subst bug45659.pdf
name object ID substitute font substitute font file
------------------------------------ --------- ------------------------------------ ------------------------------------
Arial 5 0 Helvetica Fractions /home/ajohnson/.fonts/hvfr____.PFB
Arial,Bold 7 0 Helvetica Fractions /home/ajohnson/.fonts/hvfr____.PFB
Times New Roman 24 0 Nimbus Roman No9 L /usr/share/fonts/type1/gsfonts/n021003l.pfb
Looking at the hvfr font in fontforge shows that the only glyphs it contains are fractions. This explains why the text is not displayed.
I also tested with the xpdf303merge branch and the was text correctly displayed. According to pdffonts the Liberation Sans font was substituted:
> pdffonts -subst Ablauf_20111221.pdf
name object ID substitute font substitute font file
------------------------------------ --------- ------------------------------------ ------------------------------------
Arial 5 0 Liberation Sans /usr/share/fonts/truetype/ttf-liberation/LiberationSans-Regular.ttf
Arial,Bold 7 0 Liberation Sans Bold /usr/share/fonts/truetype/ttf-liberation/LiberationSans-Bold.ttf
Times New Roman 24 0 Liberation Serif /usr/share/fonts/truetype/ttf-liberation/LiberationSerif-Regular.ttf
I'm not sure what changed in xpdf303merge to change the font substitution but it looks like this bug will be fixed when xpdf303merge is merged to master.
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Poppler-bugs
mailing list