General

How to set/vary the font in a xdialog message window

 
SOLVED
Go to solution
Boyd Kodama
Frequent Advisor

How to set/vary the font in a xdialog message window

HP-UX 10.20 with CDE (700 series).

I am using xdialog to bring up a message.

What option(s) can I use to change the font used
for the text in my message window?

The man pages for xdialog do not seem helpful.

And, how could I find out what fonts are available
to use?

thanks,

Boyd
Without Mondays, there weren't be any Fridays
4 REPLIES 4
Alex Glennie
Honored Contributor
Solution

Re: How to set/vary the font in a xdialog message window

I believe Xdialog will accept the following Xresource to change fonts :

XDialog*fontList: so you can either create a $HOME/.Xdefaults file and add this line togehter with the desired font or use it in the command line options of xdialog via xrm (see man xrdb) : eg :

/usr/bin/X11/xdialog -oc -e "hpterm -title font-test" -f /tmp/testfile -xrm
"XDialog*fontList: "

To list the fonts you could use xlsfonts | grep but without the pipe the output is quite verbose.
Boyd Kodama
Frequent Advisor

Re: How to set/vary the font in a xdialog message window

Thanks.

It seems to work with just `-xrm "*fontList: "`.

Without Mondays, there weren't be any Fridays
Wodisch
Honored Contributor

Re: How to set/vary the font in a xdialog message window

Hello Boyd,

the shortest way is the option "-fn":

xdialog -fn 12x24 ...

HTH,
Wodisch
Boyd Kodama
Frequent Advisor

Re: How to set/vary the font in a xdialog message window

Thanks but the `-fn ` didn't work. (?)
Without Mondays, there weren't be any Fridays