all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Using proportional (variable-width) fonts in Emacs23
Date: Thu, 31 Mar 2011 20:42:03 +0200	[thread overview]
Message-ID: <83ei5nqghw.fsf@gnu.org> (raw)
In-Reply-To: <jwvbp0r6g8m.fsf-monnier+gnu.emacs.help@gnu.org>

> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Date: Thu, 31 Mar 2011 00:58:55 -0400
> 
> > Not necessarily.  In Emacs, we can specify that text be displayed
> > aligned to a specific width in pixels.  See the node "Specified Space"
> > in the ELisp manual.  Perhaps display of programming languages could
> > use this feature to align program source even with proportional fonts.
> 
> I don't think we have good support for that in the display engine right
> now, but we do have some amount of support for it and it's not used for
> that purpose, and I think there's a good reason: there is no place to
> store the necessary information in the file.  So while you might be able
> to do align on-demand and even maintain that alignment as the buffer is
> edited, it's difficult to infer the needed alignment from the source
> file: I think that the information present in the file is sufficient for
> 90% of the cases, but the remaining 10% is problematic (and even
> getting those 90% working might be dependent on the language, i.e. on
> the major-mode).

We do something very similar with fontification.  There's no reason,
at least not a-priori, that it won't work with alignment.



  reply	other threads:[~2011-03-31 18:42 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-28 16:22 Using proportional (variable-width) fonts in Emacs23 Erin Brinkley
2011-03-28 18:29 ` Eli Zaretskii
2011-03-28 18:30 ` Tassilo Horn
     [not found] ` <mailman.5.1301337042.1646.help-gnu-emacs@gnu.org>
2011-03-28 23:58   ` Uday Reddy
2011-03-29  2:00     ` rusi
2011-03-29 19:28       ` Uday Reddy
2011-03-30  2:47         ` rusi
2011-03-30  8:33           ` Uday Reddy
2011-03-30 13:30             ` Pascal J. Bourguignon
2011-03-30 15:20               ` rusi
2011-03-30 15:53                 ` Pascal J. Bourguignon
2011-03-30 18:14                   ` Eli Zaretskii
2011-03-30 19:49                     ` PJ Weisberg
2011-03-30 20:29                       ` Eli Zaretskii
     [not found]                   ` <mailman.8.1301508895.9824.help-gnu-emacs@gnu.org>
2011-03-31  4:58                     ` Stefan Monnier
2011-03-31 18:42                       ` Eli Zaretskii [this message]
     [not found]                       ` <mailman.13.1301596981.19576.help-gnu-emacs@gnu.org>
2011-03-31 19:38                         ` Pascal J. Bourguignon
2011-03-31 19:51                           ` Eli Zaretskii
2011-04-01 17:26                         ` Stefan Monnier
2011-03-30 16:42               ` Peter Dyballa
2011-03-30  9:00 ` Thien-Thi Nguyen
     [not found] <mailman.0.1301334352.1646.help-gnu-emacs@gnu.org>
2011-03-28 23:01 ` Xah Lee

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

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

  git send-email \
    --in-reply-to=83ei5nqghw.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.