From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#17813: 24.3.91; bad linum display with `text-scale-adjust' Date: Fri, 20 Jun 2014 12:30:42 +0300 Message-ID: <838uosrkql.fsf@gnu.org> References: <37CF8BE3769E04shigeru.fukaya@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1403256745 28924 80.91.229.3 (20 Jun 2014 09:32:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 20 Jun 2014 09:32:25 +0000 (UTC) Cc: shigeru.fukaya@gmail.com, 17813@debbugs.gnu.org, miles@gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 20 11:32:18 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WxvBB-00058g-OZ for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Jun 2014 11:32:17 +0200 Original-Received: from localhost ([::1]:39782 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WxvBB-0001Sq-Bj for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Jun 2014 05:32:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38555) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WxvB2-0001Rg-Q4 for bug-gnu-emacs@gnu.org; Fri, 20 Jun 2014 05:32:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WxvAx-0004ji-6F for bug-gnu-emacs@gnu.org; Fri, 20 Jun 2014 05:32:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34399) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WxvAx-0004jd-38 for bug-gnu-emacs@gnu.org; Fri, 20 Jun 2014 05:32:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WxvAw-0007uM-Fo for bug-gnu-emacs@gnu.org; Fri, 20 Jun 2014 05:32:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 20 Jun 2014 09:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17813 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17813-submit@debbugs.gnu.org id=B17813.140325666630319 (code B ref 17813); Fri, 20 Jun 2014 09:32:02 +0000 Original-Received: (at 17813) by debbugs.gnu.org; 20 Jun 2014 09:31:06 +0000 Original-Received: from localhost ([127.0.0.1]:53782 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WxvA1-0007sw-8x for submit@debbugs.gnu.org; Fri, 20 Jun 2014 05:31:06 -0400 Original-Received: from mtaout27.012.net.il ([80.179.55.183]:42057) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wxv9y-0007sN-4O for 17813@debbugs.gnu.org; Fri, 20 Jun 2014 05:31:03 -0400 Original-Received: from conversion-daemon.mtaout27.012.net.il by mtaout27.012.net.il (HyperSendmail v2007.08) id <0N7G00F00NLB4Y00@mtaout27.012.net.il> for 17813@debbugs.gnu.org; Fri, 20 Jun 2014 12:27:47 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout27.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N7G008Q1NMBAW60@mtaout27.012.net.il>; Fri, 20 Jun 2014 12:27:47 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:90582 Archived-At: > From: Stefan Monnier > Date: Thu, 19 Jun 2014 14:46:48 -0400 > Cc: 17813@debbugs.gnu.org, miles@gnu.org > > I think the right solution is to scale the margin width by the ratio > "linum font size / base font size". Then users can set their `linum' > face the way want and choose between (1) and (2). > > But it turns out that face-attribute can't be used for that because it > does not pay attention to face-remapping-alist. Not sure what you mean by that: attributes don't care about remapping, because remapping doesn't change the attributes, it only changes their values. > Miles, Eli, others, do you know of a function that returns "the font > size, including face-remapping-alist effects"? I think you want (aref (font-info (face-font 'default)) 2) But note that font's size and its "width" (which is actually the average width recorded in the font file) are not identical. We don't have a Lisp API to get the average width of a non-default font; perhaps we should.