From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Problem with narrow vs condensed fonts Date: Mon, 18 Feb 2008 17:21:07 -0500 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1203373288 22083 80.91.229.12 (18 Feb 2008 22:21:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 Feb 2008 22:21:28 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 18 23:21:52 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JREMs-0000ZD-WB for ged-emacs-devel@m.gmane.org; Mon, 18 Feb 2008 23:21:47 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JREMO-0003iz-8t for ged-emacs-devel@m.gmane.org; Mon, 18 Feb 2008 17:21:16 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JREMK-0003iT-Np for emacs-devel@gnu.org; Mon, 18 Feb 2008 17:21:12 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JREMH-0003hr-Ua for emacs-devel@gnu.org; Mon, 18 Feb 2008 17:21:11 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JREMH-0003hn-RQ for emacs-devel@gnu.org; Mon, 18 Feb 2008 17:21:09 -0500 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JREMH-0006Y6-HV for emacs-devel@gnu.org; Mon, 18 Feb 2008 17:21:09 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao8CACOTuUfO+KMJdGdsb2JhbACQVgEwnDmBAg X-IronPort-AV: E=Sophos;i="4.25,373,1199682000"; d="scan'208";a="14679605" Original-Received: from smtp.pppoe.ca ([65.39.196.238]) by ironport2-out.pppoe.ca with ESMTP; 18 Feb 2008 17:21:07 -0500 Original-Received: from pastel.home ([206.248.163.9]) by smtp.pppoe.ca (Internet Mail Server v1.0) with ESMTP id YYN80007; Mon, 18 Feb 2008 17:21:07 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 518348153; Mon, 18 Feb 2008 17:21:07 -0500 (EST) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:89528 Archived-At: My Emacs by default fails to show me the variable-pitch face. I tracked it down to the following problem: My default font is misc-fixed-semicondensed-13, and on my system I have some adobe-helvetica-narrow fonts. Since semicondensed=87 and narrow=75 (and normal is 100), Emacs decided to prefer adobe-helvetica-narrow over adobe-helvetica-normal. But by the time this choice is made we don't have XLFD font names any more but font entities, so the spec just say "swidth=75" and when we try to open the font that we just listed this fails because 75 is translated back to "condensed" rather than to "narrow". In essence font-swidth-table needs to be bijective but isn't. By changing "narrow"'s setting from 75 to 76 (so it doesn't get the same value as any other any more) the problem disappears (and another problem shows up: I now get this narrow font where I'd prefer the normal font since helvetica is already pretty narrow). Does this make sense? Should we fix font-swidth-table and friends (and change internal-set-font-style-table to check that the tables are indeed bijective)? Stefan