[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#707899: Huge, Large etc. should be invokable via the command line directly



On Sun, May 12, 2013 at 09:13:33AM +0800, jidanni@jidanni.org wrote:
> Package: xterm
> Version: 290-1
> Severity: wishlist
> 
> Those font names, Huge, Large etc.
> So easy to pick from the CTRL-right-click menus,
> so hard to invoke via the command line -options.

There are pros/cons.  The names are set by resource values and (though
commonly not overridden), it would be awkward to have xterm looking
for "huge" when the actual menu says "biggest".  Getting the names during
initialization is doable but likely very complicated (since normally the
menus are initialized when the user clicks on control-mouse-whatever).

However, there is already a less elegant way to do what you want, using
the initialFont resource, e.g.,

xterm -xrm '*initialFont:5'

as documented in the manpage:

       initialFont (class InitialFont)
               Specifies  which  of  the VT100 fonts to use initially.  Values
               are the same as for the set-vt-font  action.   The  default  is
               "d", i.e., "default".

and

       set-vt-font(d/1/2/3/4/5/6/e/s [,normalfont [, boldfont]])
               This  action sets the font or fonts currently being used in the
               VT102 window.  The first argument is a  single  character  that
               specifies the font to be used:

               d  or D indicate the default font (the font initially used when
                      xterm-dev was started),

               1 through 6 indicate the fonts specified by the  font1  through
                      font6 resources,

               e  or  E  indicate the normal and bold fonts that have been set
                      through escape codes (or specified  as  the  second  and
                      third action arguments, respectively), and

               s or S indicate the font selection (as made by programs such as
                      xfontsel(1)) indicated by the second action argument.

               If xterm-dev is configured to support wide characters, an addi-
               tional  two  optional parameters are recognized for the e argu-
               ment: wide font and wide bold font.

-- 
Thomas E. Dickey <dickey@invisible-island.net>
http://invisible-island.net
ftp://invisible-island.net

Attachment: signature.asc
Description: Digital signature


Reply to: