Thursday, January 10, 2013

Fix PDF showing inifinity instead of bullets

I've had this problem for a long time, sometimes a PDF was created with a font that doesn't get mapped properly and the bullet points show up as inifinity symbols.

I found this post for Ubuntu: https://bugs.launchpad.net/ubuntu/+source/fontconfig/+bug/551977

$ fc-match Symbol symbol.ttf: "Symbol" "Regular"
A workaround is adding this code to /etc/fonts/local.conf and the bullets would appear:
<match target="pattern">  <test name="family">   <string>Symbol</string>  </test>  <edit name="family" mode="prepend" binding="same">   <string>Standard Symbols L</string>  </edit> </match>
$ fc-match Symbol s050000l.pfb: "Standard Symbols L" "Regular"
This worked perfectly in Arch for me.

No comments:

Post a Comment