Re: stringwidth variable returns invalidfont error



Joel, thanks for the reply.

jadamson@xxxxxxxxxxxx (Joel J. Adamson) writes:

Well, this is what happens.

M-x custsomize-group RET

In minibuffer I get:

Customize group (default emacs):

I type ps.print.font, and this opens Customize Group, in which I can
click: Set for Current Session, but nowhere am I asked bout which font I
would use, such as AvanteGarde.

It sounds like there is an error with your installation then. You
should havea full customization buffer with Ps Print Font Family, size,
etc.

Sorry, I find that I do have it after all. Did not dig deep enough. The
question was, does ps-print-font accept TrueType fonts? Well, under
PsFont Info Database are listed famlier such as Courier, Bookman, Zapf
Chancery, but not DejaVu. I don't see any fonts I know to be TT.

Ps-print-fonts uses fonts available on the printer, and in theory I can
list them with "ReportAllFontsInfo", but no idea what to do with that
value to see what's there.

Do I have this right? I told emacs23 to use DejaVu, but that's for
display purposes, not printing. When I print, I use the fonts that
happen to be available on my printer. When I go into Customize
ps-print-font, I am only customizing the font for printing. I can choose
among the fonts shown to be available in Ps-Font-Info-Database. Do I
judge by the font names whether they are Type1 or TT? If all are Type1,
then that's all I can use to print. How would I know the fonts available
on a printer? Manufacturer's spec ***?

Aha, I had just assumed it was an emacs error. I have a Lexmark E222

Lexmark! Does it print from other programs, e.g. OpenOffice? Lexmark
has a pretty good record of *not* supporting Linux. I had to ditch my
Dell (Lexmark) printer because (a) it *only* works with Windows and (b)
it was a piece o' rip-off.

This is an old Lexmark E322, and it does work with Linux. Been using it
for years without a problem. Don't recall why I bought it in the first
place. I got a nice HP printer, but in a remarkable gesture of
generosity, gave it to my wife to use. It does see better all around.

As for printing from other programs, I don't much print anything except
Courier with other programs. I don't have GUI stuff like OpenOffice, and
the only opportunity to access TT fonts seems to be in Iceweasel. I have
that at the default "Sans". DejaVu is listed as a font option, but
I don't see to get antialiasing when I switch to it, and printed output
looks the same as with Sans-serif.

The operating system is Linux
debian etch. The version of emacs is GNU Emacs 23.0.60.1
(i686-pc-linux-gnu, GTK+ Version 2.8.20).

You should thoroughly test the printer and look online to see if its
supported: <http://www.linuxprinting.org

Well, that's why I chose the printer. It is not in the database, but
there are reports that it supports Linux. I see that the printer does
not support PJL, and it supports direct text printing with the
`us-ascii' charset. How do I know if it has TT fonts? It recommends the
driver ljet4 driver, the built-in GS driver for PCL 5e laser printers.

Since I've been using USB printers I've not been conscious of printer
drivers, but this returns nothing:

$ lsmod | grep printer

And this is all I get:

$ lsmod | grep lp
lp 11012 0
usblp 12768 0
parport 33256 3 ppdev,lp,parport_pc
usbcore 112644 5 usb_storage,usblp,ehci_hcd,ohci_hcd

I suppose lp returns nothing because I'm not currently printing.

I see that the ljet4 driver is reported to ahve poor printing
quality. The HPljS driver may be better; it was developed for
non-postscsript printers, but apparently can be used by my
Lexmark. However, this strikes me as a OT issue, having nothing to do
with the fonts available from the printer.

--

Haines Brown, KB1GRM



.