Re: Only Courier fonts are printed out with Xprint under Mozilla
Roland Mainz wrote:
"R (Chandra) Chandrasekhar" wrote:
[snip]
A transaction listing of my Xprint setup is:
***
<root@ganga># echo ${XPSERVERLIST}
:64
***
***
<root@ganga># env DISPLAY=:64 xset q | sed -n '/^Font Path:/{n;s/
//g;p;q;}' | tr ',' '\n'
Xlib: extension "XFree86-Misc" missing on display ":64.0".
PRINTER:/usr/share/Xprint/xserver/C/print//models/PSspooldir//fonts/
PRINTER:/usr/share/Xprint/xserver/C/print//models/PSdefault//fonts/
/usr/X11R6/lib/X11/fonts/Type1
/usr/X11R6/lib/X11/fonts/TrueType
/usr/X11R6/lib/X11/fonts/100dpi
/usr/X11R6/lib/X11/fonts/75dpi
/usr/X11R6/lib/X11/fonts/encodings
/usr/X11R6/lib/X11/fonts/misc
***
[snip]
I can print from Mozilla using Xprint. However, I cannot get even
standard PostScript fonts like Times Roman or Helvetica; only Courier,
even though I am supposed to get even TrueType support with the version
of xprt-xprintorg that I am using.
The Truetype support in the xprint.mozdev.org Xprint server uses the
FreeType TTF/OTF engine from Xfree86 so it needs the encodings.dir stuff
set-up properly... - is that true in your case ?
I have installed the Debian package
libfreetype6/testing uptodate 2.1.4-4
This provides
/usr/lib/libfreetype.so.6.3.3
but no encodings.dir directly.
Because of Debian's policy, the handling of encodings.dir may be
somewhat different. There is a somewhat dated (2001) discussion of it at:
http://lists.debian.org/debian-devel/2001/debian-devel-200103/msg00030.html
under the heading "A critical bug in all xfont packages" and I do not
know if it has been resolved.
I have also in April this year reported as additional information to:
Debian Bug#189039: xprt-common: can't find 'encodings.dir'; true type
support disabled
that my encodings.dir was missing for some reason or other. It was
re-instated with
apt-get --reinstall install xfonts-base
Unfortunately, doing this does not remove the present problem and the
problem of Bug#189039 was never traced to an offending Debian package
and has probably returned to haunt me with this Xprint problem.
In sum, I do not know much about encodings.dir and have simply installed
the relevant Debian packages and let them take care of encodings.dir.
Is there some test that I can run to ensure that encodings.dir is
properly set up?
The Mozilla print preview with xprt-xprintorg shows the proportional
sans serif fonts on web pages, but the hardcopy output from the printer
only shows fixed width Courier fonts. Even when I save to a .ps file and
view it with gv, I only see Courier fonts, unlike the print preview
which shows the proportional fonts.
To illustrate what I am facing, I have included two .ps files:
[snip]
(b) google_xprt.ps (obtained with ps@:64, my printer being called ps in
CUPS)
Weired.
Note that the print preview shows the fonts as they appear in
google_kprinter.ps.
Note that removing xfs, or xfs-xtt, or both, makes no difference.
Questions:
1. Does % (DISPLAY=:64 xlsfonts) # list any fonts except the "Courier"
and "fixed"/"cursor" fonts ?
Yes, it does list fonts, among others, like
***
-urw-nimbus roman no9 l-bold-i-normal--0-0-0-0-p-0-iso8859-1
-urw-nimbus roman no9 l-bold-i-normal--0-0-0-0-p-0-iso8859-1
***
I am not sure why the lines are repeated. I can attach the complete
output from this command, for info if necessary.
2. Are the Xprint server config files (e.g.
/usr/share/Xprint/xserver/C/print/) installed ?
In /usr/share/Xprint/xserver/C/print/ there is a file called Xprinters.
It says in it that file:
# This file belongs in /usr/lib/X11/X*printers, where the "*" is the
# display number of the server.
However, there is no such file as
/usr/lib/X11/X64printers
on my system; again I do not know if this is because of compliance with
Debian rules/policy that require such files to be elsewhere , e.g.,
/etc, or because of something else.
Doing an ls -al at /usr/share/Xprint/xserver/C/print/
I get
***
<root@ganga># ls -al
total 16
drwxr-xr-x 3 root root 4096 Aug 14 13:11 .
drwxr-xr-x 3 root root 4096 Aug 14 13:11 ..
-rw-r--r-- 1 root root 2039 Jul 30 19:34 Xprinters
lrwxrwxrwx 1 root root 30 Aug 14 13:11 attributes ->
/etc/Xprint/C/print/attributes
lrwxrwxrwx 1 root root 30 Aug 14 13:11 ddx-config ->
/etc/Xprint/C/print/ddx-config
drwxr-xr-x 7 root root 4096 Aug 14 13:11 models
<root@ganga># ls -al models
total 28
drwxr-xr-x 7 root root 4096 Aug 14 13:11 .
drwxr-xr-x 3 root root 4096 Aug 14 13:11 ..
drwxr-xr-x 2 root root 4096 Aug 14 13:11 CANONBJ10E-GS
drwxr-xr-x 2 root root 4096 Aug 14 13:11 GSdefault
drwxr-xr-x 3 root root 4096 Aug 14 13:11 PSdefault
drwxr-xr-x 2 root root 4096 Aug 14 13:11 PSspooldir
drwxr-xr-x 2 root root 4096 Aug 14 13:11 SPSPARC2
<root@ganga># ls -al /etc/Xprint/C/print/ddx-config
total 12
drwxr-xr-x 3 root root 4096 Aug 14 13:11 .
drwxr-xr-x 4 root root 4096 Aug 14 13:11 ..<root@ganga>#
ls -al /etc/Xprint/C/print/ddx-config
total 12
drwxr-xr-x 3 root root 4096 Aug 14 13:11 .
drwxr-xr-x 4 root root 4096 Aug 14 13:11 ..
drwxr-xr-x 2 root root 4096 Aug 14 13:11 raster
drwxr-xr-x 2 root root 4096 Aug 14 13:11 raster
***
Again, I do know which files should be in /usr/share/Xprint/xserver/C/print/
3. Are the font _files_ in the font path readable for the Xprint server
?
The parent directories are owned by root.root and have 755 permissions
while the font files in each directory are all owned by root.root and
have 644 permissions. They are either regular files or symlinks to
files in other directories as managed by Defoma (Debian Font Manager).
4. Are there any error messages or warnings from the Xprint server ?
The file /var/log/lpr.log has lines like:
***
Aug 16 00:11:56 localhost Xprt_64: AUDIT: Sat Aug 16 00:11:56 2003: 5030
Xprt: client 1 connected from local host
Aug 16 00:11:56 localhost Xprt_64: AUDIT: Sat Aug 16 00:11:56 2003: 5030
Xprt: client 1 disconnected
***
Again, I do not know the significance of these, but they appear normal.
5. Does the Xprint server find the encodings.dir font encodings table ?
I do not know enough about this but fear it may be the problem because
it has caused a bug for me before (see additional comments to Debian
Bug#189039 noted above.
----
Bye,
Roland
Thanks for your help. I am not an expert on fonts but can supply
diagnostic info that you need, that may help solve this problem.
--Chandra
16 Aug 03
------------------
Dr R (Chandra) Chandrasekhar
Australian Research Centre for Medical Engineering (ARCME)
Murdoch University
South Street, Murdoch, WA 6150, AUSTRALIA
Phone: +61-(8)-9360-2783 Fax: +61-(8)-9360-6304
email: chandra@murdoch.edu.au
The Murdoch University CRICOS Provider Code is 00125J
------------------
Reply to: