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#61290: 28.2; Ligatures messing up fontify subscripts in AUCTeX Date: Sun, 05 Feb 2023 10:58:58 +0200 Message-ID: <83pmaosd2l.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19907"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 61290@debbugs.gnu.org To: Jeremy Van Cleve , Tassilo Horn Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 05 09:59:23 2023 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 1pOarq-00053t-Mc for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 05 Feb 2023 09:59:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pOarY-0002Rh-Jq; Sun, 05 Feb 2023 03:59:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pOarW-0002RU-SO for bug-gnu-emacs@gnu.org; Sun, 05 Feb 2023 03:59:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pOarW-0002m1-K5 for bug-gnu-emacs@gnu.org; Sun, 05 Feb 2023 03:59:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pOarW-0001xs-9t for bug-gnu-emacs@gnu.org; Sun, 05 Feb 2023 03:59:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 05 Feb 2023 08:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61290 X-GNU-PR-Package: emacs Original-Received: via spool by 61290-submit@debbugs.gnu.org id=B61290.16755875417544 (code B ref 61290); Sun, 05 Feb 2023 08:59:02 +0000 Original-Received: (at 61290) by debbugs.gnu.org; 5 Feb 2023 08:59:01 +0000 Original-Received: from localhost ([127.0.0.1]:44050 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pOarU-0001xb-MJ for submit@debbugs.gnu.org; Sun, 05 Feb 2023 03:59:00 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:37048) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pOarQ-0001xL-KR for 61290@debbugs.gnu.org; Sun, 05 Feb 2023 03:58:59 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pOarL-0002jX-9k; Sun, 05 Feb 2023 03:58:51 -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=WFZAeIVhFNx0baHM4TKkpF/+NH9FPkozyXP62nyBlWY=; b=ZnsR62vbMYaz vvjFcIlyNpEQc4o7LzbeegvIoqReeZwEG71y422TSEjDpXM0nD3EyyLtd+0cxNCD7YVatcA7EbN0X laM+8OSQJAxkd8N0gBXJ4pDzzGtbFGug93AyExuYSCUl5WoI5qKAM79Bg9ANqql12ym+am7BBy0Xt D/rmqBmWidRT0FZz1FnCoV+XE5XMcnmRjX4XWR1u6+f1Co7NjWJftyzhbK/J8c3DhV8W6dMhFCMsg TqGrlMqNYLzULWdsdZ3wNXq5gcJ5OZjtG6uQupqYhv7upyeXRv3UPHkEB/pG0fh9cSn4IRcDqf7uS l9RufA37LKpV128YHESxfQ==; Original-Received: from [87.69.77.57] (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 1pOarJ-00044Q-P3; Sun, 05 Feb 2023 03:58:50 -0500 In-Reply-To: (message from Jeremy Van Cleve on Sat, 4 Feb 2023 17:48:53 -0500) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:254826 Archived-At: > From: Jeremy Van Cleve > Date: Sat, 4 Feb 2023 17:48:53 -0500 > > After loading emacs 28.2 with `emacs -Q` and installing AUCTeX, I enable > ligatures (using FiraCode) and get the following fontify issues in a latex-mode: > > https://preview.redd.it/se7joc3h81ga1.png?width=1268&format=png&auto=webp&v=enabled&s=1322e80f7d7b0799858041dd1c9b4f44ea51fbb2 > > Specifically, fontify is changing the font size correctly in the > subscripts, but the baseline is not correct in a number of places > include for + and * and when for x_{-}. > > Without the ligatures enabled, fontify renders the subscripts correctly: > > https://preview.redd.it/8g67r6lp81ga1.png?width=1358&format=png&auto=webp&v=enabled&s=3132a756de6a8266f8300e600b6d0dae94656ee9 Thanks. My guess would be that the method used by AUCTeX for displaying subscripts is somehow incompatible with character compositions. How are subscripts displayed by AUCTeX? OTOH, if this is a problem in the Emacs display engine, I'd appreciate a simple reproducer that doesn't require AUCTeX to be installed and used. CC'ing Tassilo, in case he has some comments and idea.