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

Bug#862042: xterm: if the faceName resource is defined, the -fn (-font) option is ignored



----- Original Message -----
| From: "Vincent Lefevre" <vincent@vinc17.net>
| To: "Thomas Dickey" <dickey@his.com>
| Cc: 862042@bugs.debian.org
| Sent: Sunday, May 7, 2017 6:10:47 PM
| Subject: Bug#862042: xterm: if the faceName resource is defined, the -fn (-font) option is ignored
| 
| On 2017-05-07 17:24:43 -0400, Thomas Dickey wrote:
| > Perhaps you'll see it here:
| > 
| > http://invisible-island.net/xterm/manpage/xterm.html#VT100-Widget-Resources:renderFont
| > 
| > Most of xterm's options work by setting resource values (there are
| > a
| > handful of special cases such as "-help", "-version" which do not).
| > I can clarify the manual, but there's no reason to change the
| > program logic (in this bug, anyway).
| 
| The behavior is not what is described in this section. I would agree
| if renderFont were "true". But the manual says:
| 
|   The default is "default".
| 
| (and I haven't changed it). For "default":
| 
|     startup using the normal (bitmap) font, but enable the
|     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|     "TrueType Fonts" menu entry to allow runtime switching
|     to/from TrueType fonts.
| 
|     If there is no faceName resource set, then runtime
|     switching to TrueType fonts is disabled.  Xterm has a
|     separate  compiled-in value for faceName for the special
|     case where renderFont is "default".  That is normally
|     "mono".
| 
| So, according to the manual, I should get the bitmap font.

I'll take a closer look, to see where the disagreement lies.

| Moreover, the text for "-fn font" is not sufficient.
| 
|     This option specifies the font to be used for displaying normal
|     text.  The corresponding resource name is font.  The resource
|     value default is fixed.
| 
| First, it is not mentioned that the font must be a bitmap font (?).
| For instance, it does not work with "Monospace". It should also be
| clarified when the -fn option is ignored.

"-fn" is (as noted in the manual page), an "X Toolkit Option", which is
documented in the X manual page, where it expects an XLFD.

https://www.x.org/archive//X11R6.8.2/doc/X.7.html

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


Reply to: