From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Feng Shu" Newsgroups: gmane.emacs.devel Subject: Re: Variable pitch text filling Date: Fri, 03 Dec 2021 16:51:41 +0800 Message-ID: <87y252840y.fsf@163.com> References: <87ilwft1ph.fsf@gnus.org> <875ysbxal0.fsf@gnus.org> <83h7bvugxm.fsf@gnu.org> <87sfvessx6.fsf@gnus.org> <87wnkp9c3t.fsf@gnus.org> <87ee6wanra.fsf@gnus.org> <83r1awse4k.fsf@gnu.org> <87sfvc8kdw.fsf@gnus.org> <83czmgs7t1.fsf@gnu.org> <87k0go8ios.fsf@gnus.org> <83bl20s2dp.fsf@gnu.org> <87wnkojmny.fsf@gnus.org> <837dcos1oy.fsf@gnu.org> <87o860jm27.fsf@gnus.org> <831r2ws0jf.fsf@gnu.org> <87fsrcjkik.fsf@gnus.org> <83ee6uao67.fsf@gnu.org> <83sfva92vo.fsf@gnu.org> <83czme85xk.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16198"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: casouri@gmail.com, larsi@gnus.org, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Dec 03 09:52:40 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 1mt4J6-0003zh-9x for ged-emacs-devel@m.gmane-mx.org; Fri, 03 Dec 2021 09:52:40 +0100 Original-Received: from localhost ([::1]:41732 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mt4J3-00062h-US for ged-emacs-devel@m.gmane-mx.org; Fri, 03 Dec 2021 03:52:37 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:49450) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mt4IK-0005O1-5n for emacs-devel@gnu.org; Fri, 03 Dec 2021 03:51:52 -0500 Original-Received: from m12-14.163.com ([220.181.12.14]:49772) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mt4IG-00055W-KT; Fri, 03 Dec 2021 03:51:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-ID:MIME-Version; bh=hd/sP N5kIt/69Iedd9S8GDlif+iEZrvOezYensrHoaU=; b=AyuRc73HdvQIPiSZWrrHq O0GPQvYANW/nyCrd93FUgFjP69Uz7uSYMSnYqNDOZT0Npo+rktAR99+Od06nWoMF vQOaLoqRpRhi7aTDfBalpPw1QcMB74LSOFUi+fmI+mRWVPLnacIpMMsdyn2R23KF xTCcCpKPbdBKE50CcvR3JM= Original-Received: from debian (unknown [218.92.14.78]) by smtp10 (Coremail) with SMTP id DsCowAAX9cGd2qlhHYKRAA--.11528S2; Fri, 03 Dec 2021 16:51:42 +0800 (CST) In-Reply-To: <83czme85xk.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 03 Dec 2021 10:10:31 +0200") X-CM-TRANSID: DsCowAAX9cGd2qlhHYKRAA--.11528S2 X-Coremail-Antispam: 1Uf129KBjvJXoW7Zw45GFWDuF4xKrWDAFWxCrg_yoW8XFykpa y5K3Wvk3WkGFs5tryxJ3yF9FnakryfXrWUG3W5tw4FkFZ5Wryfur4Sg3WY9r1DCrn7Ga4j vw45twn7uF1DAaDanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07Uwo7_UUUUU= X-Originating-IP: [218.92.14.78] X-CM-SenderInfo: 5wxpt2lkx6il2tof0z/1tbiRR5e1GDuuaRYlAAAsO Received-SPF: pass client-ip=220.181.12.14; envelope-from=tumashu@163.com; helo=m12-14.163.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:280816 Archived-At: Eli Zaretskii writes: >> Date: Thu, 02 Dec 2021 22:18:51 +0200 >> From: Eli Zaretskii >> Cc: tumashu@163.com, larsi@gnus.org, emacs-devel@gnu.org >> >> > Emacs adds spaces after the character under point, but the space obstructs the character after. If I hold on C-f and go over every character, their alignment are fixed: >> >> Yes, I see it as well. Strange. I guess I'm missing something here. >> Hmm... > > I'm very sorry. This cannot work. The problem is that we can easily > change the pixel-width of the character glyphs Emacs uses for its > layout calculations (which is what the change did), but when we > actually draw the glyphs on the glass, we ask the font backend to draw > a series of glyphs in one go, and the font backend uses the original > glyph metrics as reported by the font. So, unless we draw each glyph > separately (which is what moving the cursor through text causes us to > do), something that will slow down redisplay, we cannot add spacing to > characters that way. > > This is one of the "TIL" situations each one of us has with Emacs from > time to time. It means my thinking about adding character spacing was > based on wrong assumptions, and the only way to do that is to add > stretch glyphs (which can be done only between words). > > I reverted the changeset installed yesterday. Maybe we should conside the below feature: 1. Prevent minibuffer/mode/header/tab-line from shaking up and down 2. Provide a simple fontset config UI? customize-fontset? 3. line-height-factor --