unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Chong Yidong <cyd@stupidchicken.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 1254@emacsbugs.donarmstrong.com,
	Stephen Berman <stephen.berman@gmx.net>,
	Markus Triska <markus.triska@gmx.at>
Subject: bug#1254: 23.0.60; linum-mode display problem with variable-pitch font
Date: Tue, 28 Oct 2008 13:29:25 -0400	[thread overview]
Message-ID: <87d4hk4oi2.fsf@cyd.mit.edu> (raw)
In-Reply-To: <jwvbpx423cb.fsf-monnier+emacsbugreports@gnu.org> (Stefan Monnier's message of "Tue, 28 Oct 2008 10:38:19 -0400")

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> I cannot reproduce the problem with X11 on OSX and thus cannot test
>> this. Would it work to interpret the margin width in terms of the
>> broadest glyph in a font, so other packages would benefit too?
>
> Not only that's not really possible with the current code's limitations,
> but it would also be a bad idea: in most fonts the widest glyph is
> pretty hideously wide, so you'd end up with margins that are much
> too wide.

I looked at this some more.  Apparently, the workaround of making the
linum face fixed pitch doesn't work, because the margin width always
uses the default glyph width.  Apparently, the default glyph width is
too narrow when using some variable-pitch fonts (in my case, DejaVu
Sans).

I don't know any completely satisfactory way to resolve this.  One
possible workaround is for linume.el to provide an option to add an
extra column to the margin width.






  reply	other threads:[~2008-10-28 17:29 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-27 21:58 bug#1254: 23.0.60; linum-mode display problem with variable-pitch font Chong Yidong
2008-10-28 12:30 ` Markus Triska
2008-10-28 14:38   ` Stefan Monnier
2008-10-28 17:29     ` Chong Yidong [this message]
2008-10-28 17:35       ` Markus Triska
2008-10-28 19:19       ` Stefan Monnier
     [not found]   ` <mailman.2269.1225205413.25473.bug-gnu-emacs@gnu.org>
2008-10-28 15:45     ` Markus Triska
  -- strict thread matches above, loose matches on Subject: below --
2008-10-25 19:33 Stephen Berman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87d4hk4oi2.fsf@cyd.mit.edu \
    --to=cyd@stupidchicken.com \
    --cc=1254@emacsbugs.donarmstrong.com \
    --cc=markus.triska@gmx.at \
    --cc=monnier@iro.umontreal.ca \
    --cc=stephen.berman@gmx.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).