GNU bug report logs - #17813
24.3.91; bad linum display with `text-scale-adjust'

Previous Next

Package: emacs;

Reported by: Shigeru Fukaya <shigeru.fukaya <at> gmail.com>

Date: Thu, 19 Jun 2014 17:27:02 UTC

Severity: normal

Found in version 24.3.91

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: miles <at> gnu.org, 17813 <at> debbugs.gnu.org, shigeru.fukaya <at> gmail.com
Subject: bug#17813: 24.3.91; bad linum display with `text-scale-adjust'
Date: Fri, 20 Jun 2014 12:30:42 +0300
> From: Stefan Monnier <monnier <at> iro.umontreal.ca>
> Date: Thu, 19 Jun 2014 14:46:48 -0400
> Cc: 17813 <at> debbugs.gnu.org, miles <at> 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.




This bug report was last modified 10 years and 355 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.