From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yixuan Chen Newsgroups: gmane.emacs.bugs Subject: bug#73752: 29.4; Ligatures are randomly rendered with extra spaces Date: Sat, 12 Oct 2024 12:09:02 -0400 Message-ID: References: <86zfn9ycis.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4030"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: 73752@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 12 19:13:12 2024 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 1szffz-0000rT-OG for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 12 Oct 2024 19:13:11 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1szffe-0004J3-EI; Sat, 12 Oct 2024 13:12:50 -0400 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 1szffb-0004Ic-UK for bug-gnu-emacs@gnu.org; Sat, 12 Oct 2024 13:12:48 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1szffb-0006jS-LJ for bug-gnu-emacs@gnu.org; Sat, 12 Oct 2024 13:12:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=In-Reply-To:From:References:MIME-Version:Date:To:Subject; bh=tOAYevvgXT6zYNsn1p3A+NQTzvh6utHLaO+TByvqoqI=; b=p2w4m9oS4J6EBXY8uQx6t3SR14b3x0qRT5QOOj/McjAHLbveOjiGxfhurjRA0JYXstRITNImD+Rl7L1PIy+g3ixiK1mYsODLOjBYJzgZMfzRFaNteSYNNXCza+DhJCwdbMsRezRZHChpgOUrWf0wGDDQ7WOKVJO4Ceqd3ujXkKECLZJx/8Q9K5gOgmtY05Bf/7OHN2e558PSFdgv/kL0sBrkofMxH6OiogweiW2PoYiTzVDyC9Zv190shqJMJAVADcFBlelleoZifjgRkHl4GMwNLlv+lEDICazuCB4+lJN+iZj8UJB4vMZn9GamDBryHaLLsw6g0fb7iC+dzwEZog==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1szffp-0005Z2-T2 for bug-gnu-emacs@gnu.org; Sat, 12 Oct 2024 13:13:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Yixuan Chen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 12 Oct 2024 17:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73752 X-GNU-PR-Package: emacs Original-Received: via spool by 73752-submit@debbugs.gnu.org id=B73752.172875315221319 (code B ref 73752); Sat, 12 Oct 2024 17:13:01 +0000 Original-Received: (at 73752) by debbugs.gnu.org; 12 Oct 2024 17:12:32 +0000 Original-Received: from localhost ([127.0.0.1]:53516 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1szffL-0005Xl-Ki for submit@debbugs.gnu.org; Sat, 12 Oct 2024 13:12:32 -0400 Original-Received: from qs51p00im-qukt01071901.me.com ([17.57.155.8]:49769) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1szegH-00015C-NJ for 73752@debbugs.gnu.org; Sat, 12 Oct 2024 12:09:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xlk.me; s=sig1; t=1728749346; bh=tOAYevvgXT6zYNsn1p3A+NQTzvh6utHLaO+TByvqoqI=; h=Message-ID:Date:MIME-Version:Subject:To:From:Content-Type; b=db05/zFO3NODoRAED559HjhLl7u+ubOiIK9U3wBIzIiofzH5ki94Vej55x2+t/GTJ 9+jg3Ydf0EoXeJcC2dTKAK+btHJfeZz4DYkXDc2IJIV/+R6OEgJ2YhDRP3ID1rmq1w wIcsoKlf3vbEivGOH3PoGKlGCHKypiHK5XA1N2oQujoOV7NQAxwnQ487+BPw2kR09b k5Xf385HlCiEO36bjRvMIOnrkHDy4/IYn+1nBe9WyODu8HAM+bnLZcHKfHzGVgT3YX jdXJDY5Sak/eGUpUWNvw8k2fE/yER1SaT2i6XIAa5lmgBdmA13+uzG96Nww1TUyToM lv/lLDXdl5fEQ== Original-Received: from [192.168.1.14] (qs51p00im-dlb-asmtp-mailmevip.me.com [17.57.155.28]) by qs51p00im-qukt01071901.me.com (Postfix) with ESMTPSA id 6B8DC628009F; Sat, 12 Oct 2024 16:09:04 +0000 (UTC) Content-Language: en-US In-Reply-To: <86zfn9ycis.fsf@gnu.org> X-Proofpoint-GUID: EQH0AFNp3Eb7Sd1rzWPTh358HDaPPnKo X-Proofpoint-ORIG-GUID: EQH0AFNp3Eb7Sd1rzWPTh358HDaPPnKo X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1051,Hydra:6.0.680,FMLib:17.12.62.30 definitions=2024-10-12_11,2024-10-11_01,2024-09-30_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 clxscore=1030 suspectscore=0 malwarescore=0 spamscore=0 bulkscore=0 mlxscore=0 mlxlogscore=809 phishscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2308100000 definitions=main-2410120118 X-Mailman-Approved-At: Sat, 12 Oct 2024 13:12:29 -0400 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:293467 Archived-At: On 10/12/24 04:02, Eli Zaretskii wrote: > I cannot reproduce the problem on my system. I've let Emacs randomize > the fonts for quite some time, and everything keeps rendering > correctly without the extra spaces. When you say "eventually", how > long do you typically wait until the problem appears? It took me 5 seconds at most, and usually happened immediately. > (As two deviations from your init.el, I used a different font > (Cascadia Code), since I don't have JetBrains Mono installed; and I > replaces use-package with the equivalent Lisp, since I don't want to > install ligatures.el on this system. I don't think these two > deviations should matter, but I mention them FTR.) I can replicate the same problem (and even worse in some cases) using Cascadia Code. The `use-package` should be replaceable, except you want to keep the list of ligature strings formatted in the same way. I'm not fluent in Elisp or emacs API, so my dumb way of randomization is achieved through regexp matching over the ligature strings. If they are re-organized in some way (say merged into one huge line), it might break the randomization. > I think this might be system-dependent. Can someone try this in a > Cairo build on GNU/Linux and see if the problem reproduces? Potentially, I'm using emacs-pgtk on wayland.