[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

defoma/ghostscript/fontconfig/cups mess



I am trying to set up an HPLJ 1012 to print from KDE apps (KWord, Konqueror)
using CUPS. I am getting most fonts messed up by ghostscript (gs-esp). I've
been struggling with it for a whole week now with very little progress so far.
I have very hard time believing that I'm the only one experiencing this, yet
extensive Google searches turned up almost nothing. So before I start messing
with aliases in defoma hints, I'd like to see if anyone can help.

# dpkg -l '*cups*' '*foomatic*' '*ijs*' '*fonts*' 'gs-*' '*defoma*' | grep ii
ii  cupsys         1.1.23-10      Common UNIX Printing System(tm) - server
ii  cupsys-bsd     1.1.23-10      Common UNIX Printing System(tm) - BSD comman
ii  cupsys-client  1.1.23-10      Common UNIX Printing System(tm) - client pro
ii  libcupsimage2  1.1.23-10      Common UNIX Printing System(tm) - image libs
ii  libcupsys2-dev 1.1.23-10      Common UNIX Printing System(tm) - developmen
ii  libcupsys2-gnu 1.1.23-10      Common UNIX Printing System(tm) - libs
ii  foomatic-filte 3.0.2-20050403 linuxprinting.org printer support - filters
ii  hpijs          2.1.3+0.9.3-1  HP Linux Printing and Imaging - gs IJS drive
ii  gsfonts        8.14+v8.11+urw Fonts for the Ghostscript interpreter(s)
ii  latex-xft-font 0.1-5          Xft-compatible versions of some LaTeX fonts
ii  mplayer-fonts  3.5-2          Fonts for mplayer
ii  msttcorefonts  1.2            Installer for Microsoft TrueType core fonts
ii  xfonts-base    4.3.0.dfsg.1-1 standard fonts for X
ii  gs-common      0.3.7          Common files for different Ghostscript relea
ii  gs-esp         7.07.1-9       The Ghostscript PostScript interpreter - ESP
ii  defoma         0.11.8-0.1     Debian Font Manager -- automatic font config

The system is the latest x386 sid, first installed back in 2001 from a woody
prerelease CD. All fonts are displayed just fine on screen in KDE. In KWord
letter spacing is bad for some fonts, specifically Times New Roman.

When I print to a PostScript file and then try to view it with ghostscript,
almost all fonts are totally messed up, both the typeface and letter spacing
is bad. Same with print preview and on paper.

Printing with Times New Roman in regular, italic, bold and bold italic and then
looking in the .ps file I see:

%%DocumentFonts: Times-Bold Times-Italic Times-Roman Times-BoldItalic

Then I run gs on it, and it says:

ESP Ghostscript 7.07 (2003-07-12)
Copyright 2003 artofcode LLC and Easy Software Products, all rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Loading NimbusRomNo9L-MediItal font from /var/lib/defoma/gs.d/dirs/fonts/n021024l.pfb... 2149928 764523 1763096 439747 0 done.
Loading NimbusRomNo9L-ReguItal font from /var/lib/defoma/gs.d/dirs/fonts/n021023l.pfb... 2307264 878740 1763096 385118 0 done.
Loading NimbusRomNo9L-Medi font from /var/lib/defoma/gs.d/dirs/fonts/n021004l.pfb... 2444504 1012113 1783192 401765 0 done.
Loading NimbusRomNo9L-Regu font from /var/lib/defoma/gs.d/dirs/fonts/n021003l.pfb... 2581744 1137566 1783192 387726 0 done.
>>showpage, press <return> to continue<<

Result: it shows the page with Nimbus Roman instead of Times New Roman, and
all letter spacing is fubared.

When I format all text with Nimbus Roman, I get:

%%DocumentFonts: NimbusRomanNo9L-Bold NimbusRomanNo9L-Italic NimbusRomanNo9L NimbusRomanNo9L-BoldItalic

in the .ps file, and then

ESP Ghostscript 7.07 (2003-07-12)
Copyright 2003 artofcode LLC and Easy Software Products, all rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Can't find (or can't open) font file /usr/share/ghostscript/fonts/NimbusRomanNo9L-Italic.
Can't find (or can't open) font file NimbusRomanNo9L-Italic.
Substituting font Times-Italic for NimbusRomanNo9L-Italic.
Loading NimbusRomNo9L-ReguItal font from /var/lib/defoma/gs.d/dirs/fonts/n021023l.pfb... 2170024 782484 1763096 440505 0 done.
Loading NimbusSanL-ReguItal font from /var/lib/defoma/gs.d/dirs/fonts/n019023l.pfb... 2267072 876716 1763096 445071 0 done.
Can't find (or can't open) font file /usr/share/ghostscript/fonts/NimbusRomanNo9L.
Can't find (or can't open) font file NimbusRomanNo9L.
Substituting font Times-Roman for NimbusRomanNo9L.
Loading NimbusRomNo9L-Regu font from /var/lib/defoma/gs.d/dirs/fonts/n021003l.pfb... 2404312 978219 1763096 385731 0 done.
Loading NimbusSanL-Regu font from /var/lib/defoma/gs.d/dirs/fonts/n019003l.pfb... 2501360 1069070 1783192 393897 0 done.
Can't find (or can't open) font file /usr/share/ghostscript/fonts/NimbusRomanNo9L-Bold.
Can't find (or can't open) font file NimbusRomanNo9L-Bold.
Substituting font Times-Bold for NimbusRomanNo9L-Bold.
Loading NimbusRomNo9L-Medi font from /var/lib/defoma/gs.d/dirs/fonts/n021004l.pfb... 2638600 1191705 1803288 385403 0 done.
Loading NimbusSanL-Bold font from /var/lib/defoma/gs.d/dirs/fonts/n019004l.pfb... 2735648 1286197 1803288 390241 0 done.
Can't find (or can't open) font file /usr/share/ghostscript/fonts/NimbusRomanNo9L-BoldItalic.
Can't find (or can't open) font file NimbusRomanNo9L-BoldItalic.
Substituting font Times-BoldItalic for NimbusRomanNo9L-BoldItalic.
Loading NimbusRomNo9L-MediItal font from /var/lib/defoma/gs.d/dirs/fonts/n021024l.pfb... 2852792 1410554 1823384 407179 0 done.
Loading NimbusSanL-BoldItal font from /var/lib/defoma/gs.d/dirs/fonts/n019024l.pfb... 2969936 1500398 1823384 398173 0 done.

and everything shows up in Nimbus Sans.

Again this time with Georgia font:

%%DocumentFonts: Georgia-Bold Georgia-Italic Georgia Georgia-BoldItalic

Loading Georgia-Italic font from /var/lib/defoma/gs.d/dirs/fonts/Georgia_Italic.ttf... 2012688 638623 2533496 1159515 0 done.
Loading Georgia-BoldItalic font from /var/lib/defoma/gs.d/dirs/fonts/Georgia_Bold_Italic.ttf... 2012688 638713 2764416 1342423 0 done.
Can't find (or can't open) font file /usr/share/ghostscript/fonts/Georgia.
Can't find (or can't open) font file Georgia.
Substituting font Courier for Georgia.
Loading NimbusMonL-Regu font from /var/lib/defoma/gs.d/dirs/fonts/n022003l.pfb... 2149928 761820 2208524 760030 0 done.
Loading NimbusSanL-Regu font from /var/lib/defoma/gs.d/dirs/fonts/n019003l.pfb... 2246976 852191 2228620 767944 0 done.
Loading Georgia-Bold font from /var/lib/defoma/gs.d/dirs/fonts/Georgia_Bold.ttf... 2246976 854698 2997344 1527793 0 done.

Bold, italic and bold italic are shown fine, but normal Georgia it can't find
because in defoma aliases it's known as Georgia-Regular rather than Georgia.

Again with Verdana:

%%DocumentFonts: Verdana-Bold Verdana-Italic Verdana Verdana-BoldItalic

Can't find (or can't open) font file /usr/share/ghostscript/fonts/Verdana.
Can't find (or can't open) font file Verdana.
Substituting font Courier for Verdana.
Loading NimbusMonL-Regu font from /var/lib/defoma/gs.d/dirs/fonts/n022003l.pfb... 2149928 761578 1763096 439959 0 done.
Can't find (or can't open) font file /usr/share/ghostscript/fonts/Tahoma.
Can't find (or can't open) font file Tahoma.
Substituting font Courier for Tahoma.
Loading URWGothicL-Book font from /var/lib/defoma/gs.d/dirs/fonts/a010013l.pfb... 2246976 852955 1763096 444650 0 done.
Loading Verdana-BoldItalic font from /var/lib/defoma/gs.d/dirs/fonts/Verdana_Bold_Italic.ttf... 2246976 864595 2551936 1162883 0 done.
Loading Verdana-Italic font from /var/lib/defoma/gs.d/dirs/fonts/Verdana_Italic.ttf... 2246976 864677 2780880 1328759 0 done.
Loading Verdana-Bold font from /var/lib/defoma/gs.d/dirs/fonts/Verdana_Bold.ttf... 2246976 864749 2996676 1495709 0 done.

Again with URW Palladio:

%%DocumentFonts: UrwPalladioL-Bold UrwPalladioL-Italic UrwPalladioL UrwPalladioL-BoldItalic

Can't find (or can't open) font file /usr/share/ghostscript/fonts/UrwPalladioL-BoldItalic.
Can't find (or can't open) font file UrwPalladioL-BoldItalic.
Substituting font Times-BoldItalic for UrwPalladioL-BoldItalic.
Loading NimbusRomNo9L-MediItal font from /var/lib/defoma/gs.d/dirs/fonts/n021024l.pfb... 2149928 764589 1763096 440374 0 done.
Loading NimbusSanL-BoldItal font from /var/lib/defoma/gs.d/dirs/fonts/n019024l.pfb... 2267072 864465 1763096 444960 0 done.
Can't find (or can't open) font file /usr/share/ghostscript/fonts/UrwPalladioL-Bold.
Can't find (or can't open) font file UrwPalladioL-Bold.
Substituting font Helvetica-Bold for UrwPalladioL-Bold.
Loading NimbusSanL-Bold font from /var/lib/defoma/gs.d/dirs/fonts/n019004l.pfb... 2364120 926761 1763096 385353 0 done.
Can't find (or can't open) font file /usr/share/ghostscript/fonts/UrwPalladioL-Italic.
Can't find (or can't open) font file UrwPalladioL-Italic.
Substituting font Times-Italic for UrwPalladioL-Italic.
Loading NimbusRomNo9L-ReguItal font from /var/lib/defoma/gs.d/dirs/fonts/n021023l.pfb... 2501360 1069517 1803288 406044 0 done.
Loading NimbusSanL-ReguItal font from /var/lib/defoma/gs.d/dirs/fonts/n019023l.pfb... 2598408 1155758 1803288 385405 0 done.
Can't find (or can't open) font file /usr/share/ghostscript/fonts/UrwPalladioL.
Can't find (or can't open) font file UrwPalladioL.
Substituting font Courier for UrwPalladioL.
Loading NimbusMonL-Regu font from /var/lib/defoma/gs.d/dirs/fonts/n022003l.pfb... 2715552 1277639 1823384 402157 0 done.
Loading NimbusSanL-Regu font from /var/lib/defoma/gs.d/dirs/fonts/n019003l.pfb... 2812600 1367990 1823384 406743 0 done.

Total mess.

I tried reinstalling most packages involved, dpkg-reconfiguring defoma and fontconfig,
running defoma-reconfigure manually, and a whole lot of other things. I am getting
no errors anywhere, yet no improvement.

Is this stuff supposed to work at all? What is the right way to unhose this mess?

--
Kirill



Reply to: