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.bugs Subject: bug#50660: 28.0.50; Text artifacting when the cursor moves over text under mouse face that originally displayed a box Date: Sat, 16 Oct 2021 09:28:04 +0300 Message-ID: <83fst1iivf.fsf@gnu.org> References: <87czp6ysw7.fsf.ref@yahoo.com> <871r5bvex8.fsf@yahoo.com> <83v92mkzft.fsf@gnu.org> <87k0j0rwo3.fsf@yahoo.com> <838rzbddfa.fsf@gnu.org> <878rzbd1w5.fsf@yahoo.com> <83wnmgkmok.fsf@gnu.org> <878ryvnain.fsf@yahoo.com> <83mtnbltyp.fsf@gnu.org> <87mtnblt35.fsf@yahoo.com> <83ilxzlsck.fsf@gnu.org> <877defls2w.fsf@yahoo.com> <83fst3lrwr.fsf@gnu.org> <87o87rkczt.fsf@yahoo.com> <83czo7lqrl.fsf@gnu.org> <87h7djkayk.fsf@yahoo.com> <83bl3rli53.fsf@gnu.org> <871r4njcum.fsf@yahoo.com> <83v91yiesj.fsf@gnu.org> <8735p1izzi.fsf@yahoo.com> <83k0idijq9.fsf@gnu.org> <87lf2th4ur.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20204"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, 50660@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 16 08:29:13 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1mbdBw-000549-8w for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 16 Oct 2021 08:29:12 +0200 Original-Received: from localhost ([::1]:53280 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mbdBu-0000dH-QM for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 16 Oct 2021 02:29:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54844) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mbdBo-0000cl-CD for bug-gnu-emacs@gnu.org; Sat, 16 Oct 2021 02:29:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57497) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mbdBl-0002jK-Ui for bug-gnu-emacs@gnu.org; Sat, 16 Oct 2021 02:29:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mbdBl-0002oP-LX for bug-gnu-emacs@gnu.org; Sat, 16 Oct 2021 02:29:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 16 Oct 2021 06:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50660 X-GNU-PR-Package: emacs Original-Received: via spool by 50660-submit@debbugs.gnu.org id=B50660.163436569310755 (code B ref 50660); Sat, 16 Oct 2021 06:29:01 +0000 Original-Received: (at 50660) by debbugs.gnu.org; 16 Oct 2021 06:28:13 +0000 Original-Received: from localhost ([127.0.0.1]:40810 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mbdAz-0002nP-4D for submit@debbugs.gnu.org; Sat, 16 Oct 2021 02:28:13 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:52812) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mbdAx-0002nB-FG for 50660@debbugs.gnu.org; Sat, 16 Oct 2021 02:28:12 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:40464) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mbdAs-0001zr-5e; Sat, 16 Oct 2021 02:28:06 -0400 Original-Received: from [87.69.77.57] (port=2676 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 1mbdAp-0003bf-Ml; Sat, 16 Oct 2021 02:28:06 -0400 In-Reply-To: <87lf2th4ur.fsf@yahoo.com> (message from Po Lu on Sat, 16 Oct 2021 14:16:12 +0800) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:217343 Archived-At: > From: Po Lu > Cc: larsi@gnus.org, 50660@debbugs.gnu.org > Date: Sat, 16 Oct 2021 14:16:12 +0800 > > Eli Zaretskii writes: > > > I don't think I follow: what is "the original font" in this context? > > And when you say "shouldn't s->font be", do you mean what it should be > > before or after the processing in fill_glyph_string? > > I meant what it should be after the processing, and by "the original > font", I meant the font of the original face, that was used to calculate > the metrics of the glyphs. FACE_FOR_CHAR will get you the face with the correct font, and calling get_glyph_face_and_encoding after that will produce the glyph codes from that font. So that's exactly why I commented why your additional code must be before the loop that produces the glyph codes (inside get_glyph_face_and_encoding).