I've been spending a lot time trying to fix the character spacing
problem with kde.
It seems to boil down to fontmapping , meaning what kde thinks a font
name should be and what ghostscript fonts thinks the fontname
should be
are sometimes two different things.
So when, for arguements sake, mozilla has helvetica selected as it's
font , and it sends a print file to ghostscript for printing it
seems to
know how to do this well enough.
However when KDE does the same in the same font selection it makes a
dogs breakfast of choosing the correct GS font. I don't really know
why
it does this, but it does and because KDE doesn't get it right,
spooling
seems to resolve the isue by getting GS to guess it, but it
guesses it
wrong.
The first problem is to identify where GS stores it's font files,
suffice it to say it seems to be in directories,
/usr/share/fonts/default/Type1
/usr/share/fonts/default/ghostscript
but ,
/usr/share/fonts/
/usr/share/fonts/ttf/western
/usr/share/fonts/ttf/decoratives
/usr/share/fonts/otf/mdk
/usr/share/fonts/afms/adobe
/usr/share/fonts
/usr/share/ghostscript/Resource/pdfcorefont/korean
/usr/share/ghostscript/Resource/pdfcorefont/japanese
/usr/share/ghostscript/Resource/pdfcorefont/chinese_t
/usr/share/ghostscript/Resource/pdfcorefont/chinese_s
/usr/share/ghostscript/Resource/pdfcorefont
/usr/share/ghostscript/7.05/lib
/usr/share/ghostscript/7.05/examples
do not seem to be ghostscript despite the appearance of GS in the
path.
So ,
[EMAIL PROTECTED] ]default/Type1]# type1inst
[EMAIL PROTECTED] root]# cd /usr/share/fonts/default/Type1
[EMAIL PROTECTED] Type1]# type1inst
type1inst Version 0.6.1 (11th February 1998)
Copyright (C) 1996-1998 James Macnicol ([EMAIL PROTECTED])
There are a total of 35 PostScript fonts in this directory
[10]
[20]
[30]
---
35 fonts found
35 were standard PostScript fonts
I skipped 35 of these fonts because they already
had overriding entries in both fonts.scale and/or Fontmap
(X Windows fonts or Ghostscript fonts respectively).
Fontmap
/URWGothicL-Book (a010013l.pfb);
/URWGothicL-Demi (a010015l.pfb);
/URWGothicL-BookObli (a010033l.pfb);
snip
/NimbusMonL-BoldObli (n022024l.pfb);
/URWPalladioL-Roma (p052003l.pfb);
/URWPalladioL-Bold (p052004l.pfb);
/URWPalladioL-Ital (p052023l.pfb);
/URWPalladioL-BoldItal (p052024l.pfb);
/StandardSymL(s05l.pfb);
/URWChanceryL-MediItal (z003034l.pfb);
A log of errors is located in the file type1inst.log
type1inst.log
type1inst Version 0.6.1 (11th February 1998)
Copyright (C) 1996-1998 James Macnicol ([EMAIL PROTECTED])
Run started at Fri Dec 26 13:13:41 UTC 2003
Reading fonts.scale Done.
Reading Fontmap
Done.
Writing fonts.scale
Done.
Writing Fontmap Done.
So there doesn't seem to be any problem with these as such.
BUT,
[EMAIL PROTECTED] root]# cd /usr/share/fonts/default/ghostscript
[EMAIL PROTECTED] ghostscript]# type1inst
type1inst Version 0.6.1 (11th February 1998)
Copyright (C) 1996-1998 James Macnicol ([EMAIL PROTECTED])
There are a total of 49 PostScript fonts in this directory
[10]
[20]
[30]
[40]
---
49 fonts found
17 were standard PostScript fonts
32 were Ghostscript fonts
I skipped 49 of these fonts because they already
had overriding entries in both fonts.scale and/or Fontmap
(X Windows fonts or Ghostscript fonts respectively).
Fontmap
/CharterBT-Bold (bchb.pfa);
/CharterBT-BoldItalic(bchbi.pfa);
/CharterBT-Roman (bchr.pfa);
/CharterBT-Italic(bchri.pfa);
/Shareware-Cyrillic-Regular (fcyr.gsf);
/Shareware-Cyrillic-Italic (fcyri.gsf);
/Calligraphic-Hiragana (fhirw.gsf);
/Calligraphic-Katakana (fkarw.gsf);
/Hershey-Gothic-English (hrger.pfa);
/Hershey-Gothic-English-Bold (hrgerb.gsf);
/Hershey-Gothic-English-SemiBold (hrgerd.gsf);
/Hershey-Gothic-English-Oblique (hrgero.gsf);
/Hershey-Greek-Complex (hrgkc.gsf);
/Hershey-Greek-Simplex (hrgks.gsf);
/Hershey-Gothic-German (hrgrr.pfa);
/Hershey-Gothic-German-Bold (hrgrrb.gsf);
/Hershey-Gothic-German-Oblique (hrgrro.gsf);
/Hershey-Gothic-Italian (hritr.pfa);
/Hershey-Gothic-Italian-Bold (hritrb.gsf);
/Hershey-Gothic-Italian-Oblique (hritro.gsf);
/Hershey-Plain-Duplex(hrpld.pfa);
/Hershey-Plain-Duplex-Bold (hrpldb.gsf);
/Hershey-Plain-Duplex-Bold-Italic