From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: Problem with narrow vs condensed fonts Date: Mon, 25 Feb 2008 20:24:42 +0900 Message-ID: References: <47C27BDF.30001@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1203938715 18546 80.91.229.12 (25 Feb 2008 11:25:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Feb 2008 11:25:15 +0000 (UTC) Cc: schwab@suse.de, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Jason Rumney Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 25 12:25:40 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 1JTbSj-00063B-DG for ged-emacs-devel@m.gmane.org; Mon, 25 Feb 2008 12:25:37 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JTbSD-0002BP-LO for ged-emacs-devel@m.gmane.org; Mon, 25 Feb 2008 06:25:05 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JTbS9-0002Ag-JB for emacs-devel@gnu.org; Mon, 25 Feb 2008 06:25:01 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JTbS8-0002AT-LC for emacs-devel@gnu.org; Mon, 25 Feb 2008 06:25:01 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JTbS8-0002AQ-I3 for emacs-devel@gnu.org; Mon, 25 Feb 2008 06:25:00 -0500 Original-Received: from mx1.aist.go.jp ([150.29.246.133]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JTbS4-0005r5-A3; Mon, 25 Feb 2008 06:24:56 -0500 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id m1PBOlB0012993; Mon, 25 Feb 2008 20:24:47 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp1.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id m1PBOl8H019608; Mon, 25 Feb 2008 20:24:47 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp1.aist.go.jp with ESMTP id m1PBOg1Z006940; Mon, 25 Feb 2008 20:24:42 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken.m17n.org with local (Exim 4.69) (envelope-from ) id 1JTbRq-0003zY-5D; Mon, 25 Feb 2008 20:24:42 +0900 In-reply-to: <47C27BDF.30001@gnu.org> (message from Jason Rumney on Mon, 25 Feb 2008 08:27:11 +0000) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/23.0.60 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) X-detected-kernel: by monty-python.gnu.org: Solaris 8 (1) 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:90387 Archived-At: In article <47C27BDF.30001@gnu.org>, Jason Rumney writes: > Kenichi Handa wrote: > > 2008-02-01 Jason Rumney > > > > * font.c (font_parse_fcname): Default weight and slant to normal. > > > > Jason, could you explain why we should set the default > > values for weight and slant in font_parse_fcname? > > > Without that, the weight and slant were uninitialised, and Emacs was > randomly opening italic and bold fonts, at least on Windows. On X also, if we start Emacs with, for instance, "-fn -*-fixed-*--16-*-iso8859-1", Emacs may use an italic font (even without font-backend), which is the same as xterm. It's upto the behaviour of font backend. For instance, with Xft font-backend, as it uses fontconfig library for font selection and fontconfig has system wide default preference, "-fn monospace-12" will results in non-italic, non-bold font. If we are going to implement the feature "prefer normal style font if a user doesn't specify anything", I think it should be done in the different place, not in font_parse_fcname. --- Kenichi Handa handa@ni.aist.go.jp