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

X Strike Force XFree86 SVN commit: r1610 - in trunk/debian: . local



Author: branden
Date: 2004-07-10 02:33:06 -0500 (Sat, 10 Jul 2004)
New Revision: 1610

Modified:
   trunk/debian/CHANGESETS
   trunk/debian/changelog
   trunk/debian/local/FAQ.xhtml
Log:
Add FAQ entry: Why is xterm using the "fixed" font for everything,
disregarding the font configuration from the X resource database?
(Closes: #254650)


Modified: trunk/debian/CHANGESETS
===================================================================
--- trunk/debian/CHANGESETS	2004-07-10 06:45:57 UTC (rev 1609)
+++ trunk/debian/CHANGESETS	2004-07-10 07:33:06 UTC (rev 1610)
@@ -18,4 +18,9 @@
 Grab latest version of XTerm (#191) from Thomas Dickey's website.
     1609
 
+Add FAQ entry: Why is xterm using the "fixed" font for everything,
+disregarding the font configuration from the X resource database?
+(Closes: #254650)
+    1610
+
 vim:set ai et sts=4 sw=4 tw=80:

Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog	2004-07-10 06:45:57 UTC (rev 1609)
+++ trunk/debian/changelog	2004-07-10 07:33:06 UTC (rev 1610)
@@ -7,8 +7,12 @@
 
   * Grab latest version of XTerm (#191) from Thomas Dickey's website.
 
- -- Branden Robinson <branden@debian.org>  Sat, 10 Jul 2004 01:41:31 -0500
+  * Add FAQ entry: Why is xterm using the "fixed" font for everything,
+    disregarding the font configuration from the X resource database?
+    (Closes: #254650)
 
+ -- Branden Robinson <branden@debian.org>  Sat, 10 Jul 2004 02:31:10 -0500
+
 xfree86 (4.3.0.dfsg.1-6) unstable; urgency=low
 
   Changes by Branden Robinson:

Modified: trunk/debian/local/FAQ.xhtml
===================================================================
--- trunk/debian/local/FAQ.xhtml	2004-07-10 06:45:57 UTC (rev 1609)
+++ trunk/debian/local/FAQ.xhtml	2004-07-10 07:33:06 UTC (rev 1610)
@@ -104,6 +104,9 @@
 <li><a href="#xtermwrongconfig">Why do the menus in <code
   class="command">xterm</code> have the wrong font, size, background color, or
   foregound color?</a></li>
+<li><a href="#xtermignoredfonts">Why is <code class="command">xterm</code> using
+  the "fixed" font for everything, disregarding the font configuration from the
+  X resource database?</a></li>
 <li><a href="#upgrnonfreedriver">I just upgraded the X server and it doesn't
   work; also, I'm using Matrox's proprietary <code class="other">mga_hal</code>
   driver module or NVidia's proprietary <code class="other">nvidia</code> driver
@@ -1956,6 +1959,46 @@
 XTerm.VT100.font: 10x20
 XTerm.VT100.geometry: 200x55-0+20</pre>
 
+<h3><a id="xtermignoredfonts">Why is <code class="command">xterm</code> using
+the "fixed" font for everything, disregarding the font configuration from the X
+resource database?</a></h3>
+
+<p>[Thanks to Thomas Dickey for providing this explanation.]</p>
+
+<p>This is often another example of overly-aggressive wildcarding in X resource
+specifications (see <a href="#xtermwrongconfig">above</a>).</p>
+
+<p>The wide-character widget hierarchy for <code class="command">xterm</code>
+has resource names like</p>
+
+<ul>
+  <li><code class="other">xterm.vt100.utf8Fonts.font</code></li>
+  <li><code class="other">xterm.vt100.utf8Fonts.font2</code></li>
+  <li><code class="other">xterm.vt100.utf8Fonts.font3</code></li>
+  <li>...</li>
+</ul>
+
+<p>versus the users' expected</p>
+
+<ul>
+  <li><code class="other">xterm.vt100.font</code></li>
+  <li><code class="other">xterm.vt100.font2</code></li>
+  <li><code class="other">xterm.vt100.font3</code></li>
+  <li>...</li>
+</ul>
+
+<p>The former (<code class="other">utf8Fonts</code>) override the latter when
+UTF-8 mode is selected (after the resources are evaluated, of course).</p>
+
+<p>The <code class="command">utf8fonts</code> should be ISO 10646 fonts, not ISO
+8859-1.  The wildcard <code class="other">xterm*font</code> sets both resources
+to the same value.</p>
+
+<p>Wildcards have their place, but generally not before the last level in the
+resource hierarchy.  For example, <code class="command">xterm*vt100.font</code>
+makes things work as expected with or without the toolbar option.  That's
+specific enough that it doesn't introduce a problem.</p>
+
 <h3><a id="upgrnonfreedriver">I just upgraded the X server and it doesn't
 work; also, I'm using Matrox's proprietary <code class="other">mga_hal</code>
 driver module or NVidia's proprietary <code class="other">nvidia</code> driver
@@ -2532,8 +2575,8 @@
 <h2><a id="acknowledgements">Acknowledgements</a></h2>
 
 <p>The author would like to thank Andreas Metzler, Guillem Jover, Ingo Saitz,
-Osamu Aoki, Matthew Arnison, Colin Walters, Steve Swales, Adam Jackson, and
-"ulisses" for their contributions to this document.</p>
+Osamu Aoki, Matthew Arnison, Colin Walters, Steve Swales, Adam Jackson, Thomas
+Dickey, and "ulisses" for their contributions to this document.</p>
 
 <hr />
 <p class="x-small">$Id$</p>



Reply to: