Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It looks like it's a font [naming/substitution] problem.

This http://ubuntuforums.org/showthread.php?t=1363557 fixed the display of that file for me [Kubuntu 14.04]. I installed a close font "New CenturySchlbk-Normal" and then inserted:

     <match target="pattern">
       <test qual="any" name="family"><string>NewCenturySchlbk</string></test>
       <edit name="family" mode="assign" binding="same"><string>NewCenturySchlbk-Normal</string></edit>
     </match>
in to my /home/username/.config/font-manager/local.conf file.

I didn't need to do anything further. Testing before with fc-match gave:

user@localhost$ fc-match "New CenturySchlbk" DejaVuSans.ttf: "DejaVu Sans" "Book"

Testing after gave:

user@localhost$ fc-match "NewCenturySchlbk" NewCenturySchlbk_Normal.ttf: "NewCenturySchlbk-Normal" "Regular"

Everything I tested on Okular, xpdf, The GIMP, LibreOffice, .., all gave the same results (ie this fix worked on them) except for LibreOffice which failed a lot less after the fix. Perhaps the way the creating program embedded the font was incorrect and so none of the readers good use the embedded font to render the text correctly?

pdf.js did well before, better than Okular or xpdf, but better after the fix too.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: