From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.devel Subject: Re: Problem with narrow vs condensed fonts Date: Tue, 26 Feb 2008 12:00:34 +0000 Message-ID: <47C3FF62.1080003@gnu.org> References: <47C3DFD7.4030406@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1204027266 17269 80.91.229.12 (26 Feb 2008 12:01:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 Feb 2008 12:01:06 +0000 (UTC) Cc: schwab@suse.de, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Kenichi Handa Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 26 13:01:28 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 1JTyUl-000353-CC for ged-emacs-devel@m.gmane.org; Tue, 26 Feb 2008 13:01:15 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JTyUF-0004jk-I5 for ged-emacs-devel@m.gmane.org; Tue, 26 Feb 2008 07:00:43 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JTyUB-0004j0-Kw for emacs-devel@gnu.org; Tue, 26 Feb 2008 07:00:39 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JTyUA-0004hb-59 for emacs-devel@gnu.org; Tue, 26 Feb 2008 07:00:39 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JTyU9-0004hK-Nw for emacs-devel@gnu.org; Tue, 26 Feb 2008 07:00:37 -0500 Original-Received: from mk-outboundfilter-4.mail.uk.tiscali.com ([212.74.114.32]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JTyU9-0006DL-HE for emacs-devel@gnu.org; Tue, 26 Feb 2008 07:00:37 -0500 Original-X-Trace: 13765544/mk-outboundfilter-2.mail.uk.tiscali.com/F2S/$ACCEPTED/freedom2Surf-customers/83.67.23.108 X-SBRS: None X-RemoteIP: 83.67.23.108 X-IP-MAIL-FROM: jasonr@gnu.org X-IP-BHB: Once X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAA+Ow0dTQxds/2dsb2JhbAAIkieaWw X-IP-Direction: IN Original-Received: from i-83-67-23-108.freedom2surf.net (HELO [127.0.0.1]) ([83.67.23.108]) by smtp.f2s.tiscali.co.uk with ESMTP; 26 Feb 2008 12:00:35 +0000 User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) In-Reply-To: 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:90500 Archived-At: Kenichi Handa wrote: > By the way, I think having different numeric values for > Windows is not right. The function font-spec accepts also > numeric values for style parameters (:weight, :slant, > :width). So, it is better that the numeric values are > consistent in all versions of Emacs. Is it difficult (or > time consuming) to map windows numeric values to what > specified in font-XXX-table in w32_enumfont_pattern_entity? > It is probably quite difficult and error prone, as we would be mapping a larger range (100-900 for weight on windows) onto a smaller range (0-210), and the mapping appears to be non-linear. Although in practice, most fonts probably use the fixed values currently defined in font-weight-table, I don't think it is guaranteed. I don't think users will be surprised if numeric weights are defined as backend specific. Perhaps we shouldn't even allow them for the x backend, since they are not supported natively.