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:17:56 +0800 Message-ID: <878rx29k5n.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="16779"; 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:19:18 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 1mt3mn-00049B-SQ for ged-emacs-devel@m.gmane-mx.org; Fri, 03 Dec 2021 09:19:17 +0100 Original-Received: from localhost ([::1]:59110 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mt3mm-0005fs-0C for ged-emacs-devel@m.gmane-mx.org; Fri, 03 Dec 2021 03:19:16 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:43128) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mt3lr-0004yR-9b for emacs-devel@gnu.org; Fri, 03 Dec 2021 03:18:19 -0500 Original-Received: from m12-17.163.com ([220.181.12.17]:48083) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mt3lh-0000W4-I7; Fri, 03 Dec 2021 03:18:16 -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=youkU mpfGJnrfzPAnEt+hnvJmrE3qr9i1gN0bsNssA4=; b=eG+f+byM2/5LLaCCVJ7Li 3ma1rEdOdEWnEHzbSs/FaLrd5yyOEbt29N14gGoxF7UazhFZ4CzTurKkc3KuISZl JxvyzvWo9UO64TA7FWzHgfa1Q6MjAKQTvUJx6k8yeT93Tmps0e84tHU7nQj9UeyZ JZh7UVFONYvGO8pP3j8UOU= Original-Received: from debian (unknown [218.92.14.78]) by smtp13 (Coremail) with SMTP id EcCowAC3fj200qlh0huKAA--.11395S2; Fri, 03 Dec 2021 16:17:57 +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: EcCowAC3fj200qlh0huKAA--.11395S2 X-Coremail-Antispam: 1Uf129KBjvJXoW7Zw45GFWDuF4xKrWDAFWxCrg_yoW8Gry3pa yUt3WkK3Z5CFs5Krn7X3ySvFnakryfXrWUJ3W5tr4FkFZ5WryfKr4Ig3W5ur1DCrn7Gayj vr45JwnruF1DAaDanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07Uwo7_UUUUU= X-Originating-IP: [218.92.14.78] X-CM-SenderInfo: 5wxpt2lkx6il2tof0z/1tbiRRVe1GDuuaPs3QAAs- Received-SPF: pass client-ip=220.181.12.17; envelope-from=tumashu@163.com; helo=m12-17.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_MSPIKE_H2=-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:280815 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. this is really a bad news :-( --