Discussion:
how to set font from command line?
tom arnall
2009-10-12 02:38:27 UTC
Permalink
how do you set the nedit font to, say, adobe medium 12 point, from the
command line? no doubt it's with '-font', but i can find nothing in
the doc's or googling that tells the exact syntax of the arguments
to '-font'.

tx,

tom arnall
arcata
--
NEdit Discuss mailing list - Discuss-***@public.gmane.org
http://www.nedit.org/mailman/listinfo/discuss
Matthijs van Aalten
2009-10-12 05:48:07 UTC
Permalink
Hi,

Don't ask me what all this means, but:
nedit -font -adobe-courier-medium-r-normal--18-*-*-*-*-*-*
... sets my NEdit font to courier medium, 18-points.

I opened my $HOME/.nedit/nedit.rc file; somewhere at the bottom were some font specifications. I simply copied them and used them for the -font argument. Modify to your needs...

Regards,
Matthijs



-----Original Message-----
From: discuss-bounces-***@public.gmane.org [mailto:discuss-bounces-***@public.gmane.org] On Behalf Of tom arnall
Sent: Monday 12 October 2009 4:38
To: General list
Subject: how to set font from command line?

how do you set the nedit font to, say, adobe medium 12 point, from the
command line? no doubt it's with '-font', but i can find nothing in
the doc's or googling that tells the exact syntax of the arguments
to '-font'.

tx,

tom arnall
arcata
--
NEdit Discuss mailing list - Discuss-***@public.gmane.org
http://www.nedit.org/mailman/listinfo/discuss
--
NEdit Discuss mailing list - Discuss-***@public.gmane.org
http://www.nedit.org/mailman/listinfo/discuss
Andrew Stanaski
2009-10-12 14:42:41 UTC
Permalink
You can use xfontsel to generate a font spec string.

Andy S.
Post by Matthijs van Aalten
Hi,
nedit -font -adobe-courier-medium-r-normal--18-*-*-*-*-*-*
... sets my NEdit font to courier medium, 18-points.
I opened my $HOME/.nedit/nedit.rc file; somewhere at the bottom were some font specifications. I simply copied them and used them for the -font argument. Modify to your needs...
Regards,
Matthijs
-----Original Message-----
Sent: Monday 12 October 2009 4:38
To: General list
Subject: how to set font from command line?
how do you set the nedit font to, say, adobe medium 12 point, from the
command line? no doubt it's with '-font', but i can find nothing in
the doc's or googling that tells the exact syntax of the arguments
to '-font'.
tx,
tom arnall
arcata
--
NEdit Discuss mailing list - Discuss-***@public.gmane.org
http://www.nedit.org/mailman/listinfo/discuss
Corne Beerse
2009-10-14 07:35:07 UTC
Permalink
Post by Matthijs van Aalten
Hi,
nedit -font -adobe-courier-medium-r-normal--18-*-*-*-*-*-*
... sets my NEdit font to courier medium, 18-points.
With this, `nedit -font -*-*-*-*-*--24-*-*-*-*-*-* ` should switch the
current font to 24 point size, provided the current font has that size
available.
Post by Matthijs van Aalten
I opened my $HOME/.nedit/nedit.rc file; somewhere at the bottom were some font specifications. I simply copied them and used them for the -font argument. Modify to your needs...
Regards,
Matthijs
-----Original Message-----
Sent: Monday 12 October 2009 4:38
To: General list
Subject: how to set font from command line?
how do you set the nedit font to, say, adobe medium 12 point, from the
command line? no doubt it's with '-font', but i can find nothing in
the doc's or googling that tells the exact syntax of the arguments
to '-font'.
tx,
tom arnall
arcata
--
NEdit Discuss mailing list - Discuss-***@public.gmane.org
http://www.nedit.org/mailman/listinfo/discuss
Dušan Peterc
2009-10-13 12:26:59 UTC
Permalink
Post by tom arnall
how do you set the nedit font to, say, adobe medium 12 point, from the
command line? no doubt it's with '-font', but i can find nothing in
the doc's or googling that tells the exact syntax of the arguments
to '-font'.
If you use nedit with OpenMotif, you can also have antialiased font in menus
nedit -xrm "*renderTable: rt" -xrm "*rt*fontType: FONT_IS_XFT" -xrm
"*rt*fontName: Sans" -xrm "*rt*fontSize: 10"

Dušan Peterc
--
NEdit Discuss mailing list - Discuss-***@public.gmane.org
http://www.nedit.org/mailman/listinfo/discuss
Loading...