NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: xterm -fa weirdness (9.3 and 10.0 RC_1)
On Thu, 4 Jan 2024, Rhialto wrote:
I do have in my ~/.Xresources:
xterm.vt100.faceName: Lucida Console Semi-Condensed
xterm.vt100.faceSize: 9
XTerm.vt100.renderFont: false
UXTerm.vt100.renderFont: true
You've put the instance-names (lower-case initial char.) in .Xresources
which will override resources specified using class-names (upper-case
initial char.), so:
This works:
xterm -xrm "xterm.vt100.renderFont: true" \
-xrm "xterm.vt100.faceSize: 12" \
-xrm "xterm.vt100.faceName: C64 Pro Mono"
This should be equivalent, and in fact the preferred way (when specifying
the font specifically on the command line), but doesn't work:
xterm -xrm "xterm.vt100.renderFont: true" \
-xrm "xterm.vt100.faceSize: 12" \
-fa "C64 Pro Mono"
those 2 are not equivalent. The `-fa "C64 Pro Mono"' becomes, I believe,
`XTerm.VT100.faceName: C64 Pro Mono'; and class-names are a less specific
match compared to instance-names. This is hinted at in xterm(1):
Some poorly‐designed resource files are too specific to
allow the command‐line options to affect the relevant widget
values.
and more fully (though, opaquely) explained in X(7), sec. RESOURCES:
The rules (in order of precedence) are:
1. An entry that contains a matching component (whether
name, class, or "?") takes precedence over entries that
elide the level (that is, entries that match the level in
a loose binding).
2. An entry with a matching name takes precedence over
both entries with a matching class and entries that match
using "?". An entry with a matching class takes precedence
over entries that match using "?".
3. An entry preceded by a tight binding takes precedence
over entries preceded by a loose binding.
#2 and #3 are, I think, what apply here. Use the class-name in .Xresources:
```
--- .Xresources.orig 2024-01-05 07:50:56.289131905 +0000
+++ .Xresources 2024-01-05 07:51:36.842215151 +0000
@@ -1,4 +1,4 @@
-xterm.vt100.faceName: Lucida Console Semi-Condensed
-xterm.vt100.faceSize: 9
+XTerm.vt100.faceName: Lucida Console Semi-Condensed
+XTerm.vt100.faceSize: 9
XTerm.vt100.renderFont: false
UXTerm.vt100.renderFont: true
```
That should work.
-RVP
Home |
Main Index |
Thread Index |
Old Index