Operating System - HP-UX
1836222 Members
1974 Online
110096 Solutions
New Discussion

11.11and printer font size

 
Doug Wheeler_1
Frequent Advisor

11.11and printer font size

I am in the process of switching over to HPUX-11.11. It???s a clean install.
I installed the JetDirect Installer. (Ver. E.10.34)

My printer is on the LAN with JetDirect. I configure it as a network printer,
I set it up to print from the Xwindow in Print Server Configuration.

OK, so if I print via an lp command all is good. If I print from the CDE the font comes out close to a .1 size.

Where did I go wrong?

Doug
1 REPLY 1
Alex Glennie
Honored Contributor

Re: 11.11and printer font size

My advise would be to disable TPS :

Current CDE patches allow configuring CDE to revert to the older
HP-UX 10.20 behavior of routing the text to the lp spooler rather
than using TPS.
(Starting with [PHSS_25138/PACHRDME/English] for HP-UX 11.00 and
[PHSS_25197/PACHRDME/English] for HP-UX 11.11)

If the system has a current CDE patch installed:

A. Edit the file "/etc/rc.config.d/desktop" and add the following line:

DTPRTSVR=LP

or run the following command:

ch_rc -a -p DTPRTSVR=LP /etc/rc.config.d/desktop

NOTE: This environment variable does not exist by default;
therefore, it must be added and set to "LP" in order to overwrite
the system-default setting of TPS. It must be entirely entered
in uppercase.

B. Stop and Restart CDE

NOTE: insure that all users are currently logged out of CDE

'/sbin/init.d/dtlogin.rc stop'
'/sbin/init.d/dtlogin.rc start'

But if you are not keen try the following first : ensure a fontserver has been configured and is running aka xfs(1) , next see below : overriding font size :

The X resources for CDE applications need to modified.
The defaults reside in "/usr/dt/app-defaults/C" directory.
The contents of this directory should not be modified. To customize
on a user basis, the resources should be set in "$HOME/.Xdefaults".
For a system-wide customization, files need to be created
in the "/etc/dt/app-defaults/C" directory that have the
same names as those in the "/usr/dt/app-defaults/C" directory.
I.e. Dtpad, Dtcm, etc.

To override the size change all of the "-0-0-m-*-*-*" entries
for "*Print*" lines. For example:

FROM:

Dtpad*Print*Page*HeaderLeft.renderTable:
-dt-application-bold-r-normal-serif-0-120-0-0-m-0-*-*


TO:

Dtpad*Print*Page*HeaderLeft.renderTable:
-adobe-courier-bold-r-normal-*-*-120-300-300-m-*-*-*:

Notes: 1) the "0-0" has been changed to "300-300" as an
example 2) the font name was changed 3) These are really
one long line -- cannot be separate or have any trailing
characters.