You are not logged in.

#1 2012-05-16 14:12:09

Baryon
Member
Registered: 2011-08-12
Posts: 72

Font corruption after fc-cache

Hello,
I recently installed a new font and ran fc-cache -vf, but now a different font appears to have become corrupted as a consequence. I have a particular PDF document that uses the font and neither zathura nor epdfview can display it anymore (it's a Nastaliq script for Urdu), though it used to work fine. Since it's in a PDF document, I don't know what the font is called and therefore I don't know how to fix this. Could someone advise me?
Thanks

Offline

#2 2012-05-16 15:07:50

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: Font corruption after fc-cache

Fonts don't just become corrupted. Instead of running "fc-cache -vf" you could just as well restart X ("pkill x", then "startx") or reboot. Same thing.

Fonts are embedded in the PDF. If you don't know what one of them is called, install acroread from the AUR, open the PDF and go to File - Properties - Fonts. Personally I think that open source PDF readers are kind of crappy. There's evince, epdfview, kdegraphics-okular. None of them display fonts the same way and each has their own issues. Adobe is PDF's granddaddy (I mean, they did invent it!) and I think you should probably go with acroread.


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#3 2012-05-17 06:23:24

Baryon
Member
Registered: 2011-08-12
Posts: 72

Re: Font corruption after fc-cache

OK, thanks. It works fine in acroread, and it also works fine in ghostscript itself... I'm still not sure what's going on.

Offline

#4 2012-05-17 08:05:17

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: Font corruption after fc-cache

There are simple checks, e.g.:

Open the PDF in e.g. evince, then run:
lsof | grep -i ttf

Assuming it's a truetype font.

Offline

#5 2012-05-17 13:10:02

Gumper
Member
From: U.S.A.
Registered: 2009-10-26
Posts: 132

Re: Font corruption after fc-cache

I'm having the same issue here with some pdfs. Pdfs that would open before without any problem in Zathura and evince are now unreadable. In my case half of every line is missing. Something must be broken in some package. Not sure which one though.

They will open fine it Acroread but I'd rather not use that bloated beast.


Ready yourselves, ready yourselves
Let us shine the light of Jesus in the darkest night
Ready yourselves, ready yourselves
May the powers of darkness tremble as our praises rise .... Casting Crowns-Until The Whole World Hears.

Offline

#6 2012-05-17 14:41:33

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: Font corruption after fc-cache

Gumper wrote:

half of every line is missing

cairo 1.12.x seems to be responsible often recently, or is exposing a bug in a display driver or some other xorg component.

Offline

Board footer

Powered by FluxBB