From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Using proportional (variable-width) fonts in Emacs23 Date: Thu, 31 Mar 2011 20:42:03 +0200 Message-ID: <83ei5nqghw.fsf@gnu.org> References: <898836.13190.qm@web121803.mail.ne1.yahoo.com> <4d9120aa$0$23756$14726298@news.sunsite.dk> <47119ce7-b1d1-4967-aa3e-d10112f10510@q40g2000prh.googlegroups.com> <4d9232cb$0$23752$14726298@news.sunsite.dk> <516de695-18e0-4442-9616-63bc24b99a58@18g2000prd.googlegroups.com> <4d92ead3$0$23757$14726298@news.sunsite.dk> <87sju47n29.fsf@kuiper.lan.informatimago.com> <33669aa8-47ea-48c5-8dc9-fb216893ef03@f15g2000pro.googlegroups.com> <87fwq47ggx.fsf@kuiper.lan.informatimago.com> NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1301597007 8258 80.91.229.12 (31 Mar 2011 18:43:27 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 31 Mar 2011 18:43:27 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 31 20:43:23 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q5Mq3-00011j-Dt for geh-help-gnu-emacs@m.gmane.org; Thu, 31 Mar 2011 20:43:23 +0200 Original-Received: from localhost ([127.0.0.1]:34409 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q5Mq3-0004m7-25 for geh-help-gnu-emacs@m.gmane.org; Thu, 31 Mar 2011 14:43:23 -0400 Original-Received: from [140.186.70.92] (port=49392 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q5Mpf-0004ln-4D for help-gnu-emacs@gnu.org; Thu, 31 Mar 2011 14:43:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q5Mpd-0006Jb-QL for help-gnu-emacs@gnu.org; Thu, 31 Mar 2011 14:42:58 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:50256) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q5Mpd-0006JH-Jp for help-gnu-emacs@gnu.org; Thu, 31 Mar 2011 14:42:57 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0LIX00100QJYEQ00@a-mtaout23.012.net.il> for help-gnu-emacs@gnu.org; Thu, 31 Mar 2011 20:42:03 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.126.47.180]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LIX001DNQM18R20@a-mtaout23.012.net.il> for help-gnu-emacs@gnu.org; Thu, 31 Mar 2011 20:42:03 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.175 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:80561 Archived-At: > From: Stefan Monnier > 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.