Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

After copying the fonts from my Windows XP system to the /usr/share/fonts/truetype/ folder, the Document Viewer (version 2.23.0) is no more showing some texts (as the summary of my pdf). The same happens with Okular (version 4:4.5.5-0ubuntu2), ePDFViewer (version 0.1.7-4) and KPDF (3.5.10).

However, I could read my pdfs using xpdf (version 3.02-9) and Adobe Reader 9.

Any idea what went wrong with Document Viewer? I tried reinstalling it, but had no difference.

--update:

$ sudo fc-cache -v
/usr/share/fonts: skipping, existing cache is valid: 0 fonts, 3 dirs
/usr/share/fonts/X11: skipping, existing cache is valid: 0 fonts, 6 dirs
/usr/share/fonts/X11/100dpi: skipping, existing cache is valid: 0 fonts, 0 dirs
/usr/share/fonts/X11/75dpi: skipping, existing cache is valid: 0 fonts, 0 dirs
/usr/share/fonts/X11/Type1: skipping, existing cache is valid: 44 fonts, 0 dirs
/usr/share/fonts/X11/encodings: skipping, existing cache is valid: 0 fonts, 1 dirs
/usr/share/fonts/X11/encodings/large: skipping, existing cache is valid: 0 fonts, 0 dirs
/usr/share/fonts/X11/misc: skipping, existing cache is valid: 0 fonts, 0 dirs
/usr/share/fonts/X11/util: skipping, existing cache is valid: 0 fonts, 0 dirs
/usr/share/fonts/truetype: skipping, existing cache is valid: 272 fonts, 20 dirs
/usr/share/fonts/truetype/freefont: skipping, existing cache is valid: 12 fonts, 0 dirs
/usr/share/fonts/truetype/msttcorefonts: skipping, existing cache is valid: 60 fonts, 0 dirs
/usr/share/fonts/truetype/openoffice: skipping, existing cache is valid: 1 fonts, 0 dirs
/usr/share/fonts/truetype/takao: skipping, existing cache is valid: 1 fonts, 0 dirs
/usr/share/fonts/truetype/thai: skipping, existing cache is valid: 54 fonts, 0 dirs
/usr/share/fonts/truetype/ttf-dejavu: skipping, existing cache is valid: 21 fonts, 0 dirs
/usr/share/fonts/truetype/ttf-droid: skipping, existing cache is valid: 9 fonts, 0 dirs
/usr/share/fonts/truetype/ttf-indic-fonts-core: skipping, existing cache is valid: 17 fonts, 0 dirs
/usr/share/fonts/truetype/ttf-kacst-one: skipping, existing cache is valid: 1 fonts, 0 dirs
/usr/share/fonts/truetype/ttf-khmeros-core: skipping, existing cache is valid: 2 fonts, 0 dirs
/usr/share/fonts/truetype/ttf-lao: skipping, existing cache is valid: 1 fonts, 0 dirs
/usr/share/fonts/truetype/ttf-liberation: skipping, existing cache is valid: 12 fonts, 0 dirs
/usr/share/fonts/truetype/ttf-punjabi-fonts: skipping, existing cache is valid: 2 fonts, 0 dirs
/usr/share/fonts/truetype/ttf-symbol-replacement: skipping, existing cache is valid: 0 fonts, 1 dirs
/usr/share/fonts/truetype/ttf-symbol-replacement/symbol-replacement.ttf: skipping, existing cache is valid: 1 fonts, 0 dirs
/usr/share/fonts/truetype/ttf-ubuntu-title: skipping, existing cache is valid: 1 fonts, 0 dirs
/usr/share/fonts/truetype/ttf-xfree86-nonfree: skipping, existing cache is valid: 12 fonts, 0 dirs
/usr/share/fonts/truetype/ubuntu-font-family: skipping, existing cache is valid: 4 fonts, 0 dirs
/usr/share/fonts/truetype/umefont: skipping, existing cache is valid: 18 fonts, 0 dirs
/usr/share/fonts/truetype/unfonts: skipping, existing cache is valid: 4 fonts, 0 dirs
/usr/share/fonts/truetype/wqy: skipping, existing cache is valid: 2 fonts, 0 dirs
/usr/share/fonts/type1: skipping, existing cache is valid: 0 fonts, 2 dirs
/usr/share/fonts/type1/gsfonts: skipping, existing cache is valid: 35 fonts, 0 dirs
/usr/share/fonts/type1/mathml: skipping, existing cache is valid: 1 fonts, 0 dirs
/usr/X11R6/lib/X11/fonts: skipping, no such directory
/usr/local/share/fonts: skipping, existing cache is valid: 0 fonts, 0 dirs
/home/tombrito/.fonts: skipping, existing cache is valid: 0 fonts, 0 dirs
/var/cache/fontconfig: cleaning cache directory
/home/tombrito/.fontconfig: cleaning cache directory
fc-cache: succeeded

--update: Screenshots

The summary:

enter image description here

Comparison, Document Viewer on the left, and Adobe Reader on the right:

enter image description here

share|improve this question
    
Have you tried running an fc-cache -v? Does it produce any warnings? –  Pavlos G. Aug 1 '11 at 21:20
    
@Pavlos G.: Looks like there's no errors, check out my update –  Tom Brito Aug 2 '11 at 12:12
    
Then how about trying an fc-cache -f in order to force the regeneration of the cache files... –  Pavlos G. Aug 4 '11 at 17:10
    
@Pavlos G.: not.. also no error with -v -f –  Tom Brito Aug 4 '11 at 17:47
    
Maybe if were a cache problem it would be solved after a restart? Which is not the case.. So that might be some font missing or currupted in the truetype folder.. Is there some place where I can download the fonts again? –  Tom Brito Aug 4 '11 at 17:48
show 13 more comments

1 Answer

up vote 0 down vote accepted
+50

Remove completely (don't just rename) the truetype folder from /usr/share/fonts.

Then do a sudo fc-cache -f
and sudo dpkg-reconfigure fontconfig

share|improve this answer
    
Also, I need to reinstall some missing fonts now (that's why some programs are different), but this part is easy =) –  Tom Brito Aug 5 '11 at 15:12
1  
The truetype folder was really not recreated, I think I'll try to copy it from my own ubuntu's system, in my house. But all fonts are showing correctly in the pdfs now. –  Tom Brito Aug 5 '11 at 15:14
    
I did an apt-get remove and an apt-get install with the ttf-mscorefonts-installer, and the truetype folder is there now. I wonder if this would solve all in the beggining (I never did the apt-get remove). Anyway, everything is ok now =) –  Tom Brito Aug 5 '11 at 16:24
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.