From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Variable pitch text filling Date: Fri, 26 Nov 2021 17:04:11 +0200 Message-ID: <837dcv2c2c.fsf@gnu.org> References: <87ilwft1ph.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38073"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Nov 26 16:05:24 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mqcmy-0009i8-50 for ged-emacs-devel@m.gmane-mx.org; Fri, 26 Nov 2021 16:05:24 +0100 Original-Received: from localhost ([::1]:53008 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mqcmx-0007JR-4e for ged-emacs-devel@m.gmane-mx.org; Fri, 26 Nov 2021 10:05:23 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:41060) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mqclj-0006Fr-Dg for emacs-devel@gnu.org; Fri, 26 Nov 2021 10:04:07 -0500 Original-Received: from [2001:470:142:3::e] (port=59050 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mqclj-0008QC-2e; Fri, 26 Nov 2021 10:04:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=/zmomntjHnMbP6f4KCHCggTSo7DMdaoHV8gr92xNjtA=; b=h6LlsDdPPMRM kBKCLIs1dpc3eu660iuwqYz3vcLkv2PorC8uxoSu1SQGnX4S1tyWqgifX8gI9p1NEnkHjq/8ldHXz V7O/tMAefayNC01NBNKnKGauk2CXxY5LsgIC+QCoaU/l+mik5G9GQM0hDFhu0VHdAN+ZfVhSrmbIP hbrfICfwFr9NaRmv7BTn3Q88nddhyNQh8m7IIbS59P2qyWzbez1uApn/vrBxN9nEVh6E8quK1L1AZ noTLgLvQwAEL/GWJJzCpEcutXFcgNDLhTxggc6JrXVAoZ2S7JzavL5SASOAQQEvBCZsBDLkQ5Rjk5 rhrXaREFp5LjiLKDmp+JRA==; Original-Received: from [87.69.77.57] (port=2918 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mqcli-0006Mg-Li; Fri, 26 Nov 2021 10:04:07 -0500 In-Reply-To: <87ilwft1ph.fsf@gnus.org> (message from Lars Ingebrigtsen on Fri, 26 Nov 2021 15:45:46 +0100) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:280252 Archived-At: > From: Lars Ingebrigtsen > Date: Fri, 26 Nov 2021 15:45:46 +0100 > > But I'm wondering to what degree (if any) we'd want to support the more > advanced (and seldom used) features from our normal filling machinery. > For instance -- justification (i.e., having straight borders on both > sides). I think this would be a welcome feature. > To do this with a variable pitch text, you'd have to first fill a line > normally, and then go over the line and distribute some space pixels > everywhere (or just on spaces in the line). (This can (conveniently > enough) probably be done with the new `min-width' spec (if we're > distributing the extra pixels on all characters and not just the > spaces).) Since we will have spaces in the text from the filling, we could use the :width display spec on those space characters. There should be no need for min-width.