Operating System - HP-UX
1836682 Members
2569 Online
110108 Solutions
New Discussion

Re: CDE: How to change font size in dtpad

 
SOLVED
Go to solution
Graham Cameron_1
Honored Contributor

CDE: How to change font size in dtpad

Any one know how to change the font size of a dtpad window ?

Can't find anything on the man pages or the HP forums

dtterm -fn does it for dtterms, but
dtpad -fn ignores it.

Graham
Computers make it easier to do a lot of things, but most of the things they make it easier to do don't need to be done.
5 REPLIES 5
Alex Glennie
Honored Contributor

Re: CDE: How to change font size in dtpad

I suspect dtpad is usning the Resource manager settings in which case you'd need to go to the Style manager-> fonts and set from here ..nope tried that and it didn't work but ...

Can the default font for dtpad be changed?

From the command line, a user could execute the follow:

/usr/dt/bin/dtpad -standAlone -xrm '*DtEditor*textFontList: user6x13'

Other fonts the user can choose from are found in the following directories:

/usr/lib/X11/fonts/hp_roman8/75dpi
/usr/lib/X11/fonts/misc

To permanently alter the font used by dtpad place the following resource in $HOME/Dtpad (for an
individual user) or in /etc/dt/app-defaults/C/Dtpad (for a system-wide change)

Dtpad*standAlone: True
Dtpad*textFontList font name

NB you may find you need to employ both methods togehter .....
Stefan Saliba
Trusted Contributor

Re: CDE: How to change font size in dtpad

Have you tried using the -standAlone option. This allows the creation of a seperate stand alone dtpad process where any of the standard resources such as fontlist or color can be loaded according to the environment on the requestor's host

good luck
Graham Cameron_1
Honored Contributor

Re: CDE: How to change font size in dtpad

Thanks Alex.
The command line option works a treat.
Couldn't get the 'permanent' solution to work, but who cares, I can live with that !

Thanks again

Graham
Computers make it easier to do a lot of things, but most of the things they make it easier to do don't need to be done.
Alex Glennie
Honored Contributor
Solution

Re: CDE: How to change font size in dtpad

Don't say I can't take a hint ...

Try adding the following in

$HOME/.Xdefaults
Dtpad*standAlone: True
Dtpad*textFontList: fixed or whatever ?

any better ?

Graham Cameron_1
Honored Contributor

Re: CDE: How to change font size in dtpad

I have to admire your persistence!
And you are right - that did it.
10 points coming your way.

till the next time.
- Graham
Computers make it easier to do a lot of things, but most of the things they make it easier to do don't need to be done.