Hi all
My problem is fixed, thanks Angus. Below is the solution.
Angus Lees wrote:
A very simple tool for finding out what fonts are referenced and/or......
embedded in a PDF is "pdffonts" that comes with xpdf (its in the
xpdf-utils Debian package).
or you are using the base fonts and your xpdf is unable to find its installed version of them (from the gsfonts package on Debian) and your PDF file should work fine elsewhere.
Ah that utility was very useful.
mikel$ pdffonts ASFCaveSummary.pdf
Error: Unknown config file command 't1libControl' (/home/mikel/.xpdfrc:18)
Error: -- The t1libControl and freetypeControl options have been replaced by the enableT1lib, enableFreeType, and antialias options
name type emb sub uni object ID
------------------------------------ ------------ --- --- --- ---------
Times-Roman Type 1 no no no 2 0
Helvetica-Bold Type 1 no no no 3 0
Times-Bold Type 1 no no no 4 0
I removed those options in my .xpdfrc file and replaced them by the newer options. I still had the same problem, no text displayed and the error:
mikel$ xpdf ASFCaveSummary.pdf &
Error: No display font for 'Courier'
Error: No display font for 'Courier-Bold'
As all the fonts I am using are ones that should be available on a standard system it must be that xpdf can't find the fonts. I read man xpdfrc and it suggested:
# use the Base-14 Type 1 fonts from ghostscript
displayFontT1 Times-Roman /usr/local/share/ghostscript/fonts/n021003l.pfb
displayFontT1 Times-Italic /usr/local/share/ghostscript/fonts/n021023l.pfb
etc.
My fonts are actually provided by the package gsfonts and they are in
/usr/share/fonts/type1/gsfonts/ so I copied the text from the examples section and replaced the font location so I now had this in .xpdfrc:
# use the Base-14 Type 1 fonts from ghostscript # see man xpdfrc EXAMPLES but replace # /usr/local/share/ghostscript/fonts/ with # /usr/share/fonts/type1/gsfonts/ displayFontT1 Times-Roman /usr/share/fonts/type1/gsfonts/n021003l.pfb displayFontT1 Times-Italic /usr/share/fonts/type1/gsfonts/n021023l.pfb displayFontT1 Times-Bold /usr/share/fonts/type1/gsfonts/n021004l.pfb
Then when I used xpdf to view my file the text was there !!!!
Thanks slug :-) -- Mike Lake Caver, Linux enthusiast and interested in anything technical.
-- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
