From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Visuwesh Newsgroups: gmane.emacs.bugs Subject: bug#73752: 29.4; Ligatures are randomly rendered with extra spaces Date: Tue, 29 Oct 2024 19:30:59 +0530 Message-ID: <87wmhrypno.fsf@gmail.com> References: <86zfn9ycis.fsf@gnu.org> <86o735als7.fsf@gnu.org> <87o73534dn.fsf@gmail.com> <86h68x8nuz.fsf@gnu.org> <86ed418niu.fsf@gnu.org> <87jzds3lay.fsf@gmail.com> <86iktc6zp5.fsf@gnu.org> <87wmhs19rh.fsf@gmail.com> <86frog6thm.fsf@gnu.org> <87o73318ql.fsf@gmail.com> <86wmhr5acv.fsf@gnu.org> <871pzz10bx.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6019"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: luangruo@yahoo.com, 73752@debbugs.gnu.org, xuan@xlk.me To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 29 15:03:19 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 1t5moY-0001Mh-UC for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 29 Oct 2024 15:03:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t5moK-0000yo-FZ; Tue, 29 Oct 2024 10:03:04 -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 1t5moI-0000yH-63 for bug-gnu-emacs@gnu.org; Tue, 29 Oct 2024 10:03:02 -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 1t5moH-0004o1-SM for bug-gnu-emacs@gnu.org; Tue, 29 Oct 2024 10:03:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=Z42gg/Z8dOd6BStD9qgM47gU4942owpa9Tbn1EfudH8=; b=WMEjVn9iQssxbWOFo3eGqfW171fSgLM2Nyk60NjLsd8ilC/Ua03SH0do7pkZ5p/la2ap3nPEBM/eXUQFmkALojzD08AUcNTzoQoc57+nJ7grIBIwF9HIMEMCGG1RL7t4kqNA4P1AwrSMZdnnRpwtdrmjm5dmw6XsSk4YRy4+hZZXzotwo/ZApK/x4uT9WA4wnUrtKiqE/mpN7MYzu/jjkiXMttvLk/q7YNzHzisp7HIaarvr6VwnyieT167R72NKL0ktau/uRVBfnyMKu+3vlyi3tc7qsoL2DDyMM4OaqZ6UxZe4ZdSr2FzoQBvH1gQiVkfYLEjdXtRo3tw4zVJilg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t5moH-0005z5-LQ for bug-gnu-emacs@gnu.org; Tue, 29 Oct 2024 10:03:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Visuwesh Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 29 Oct 2024 14:03: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.173021052822982 (code B ref 73752); Tue, 29 Oct 2024 14:03:01 +0000 Original-Received: (at 73752) by debbugs.gnu.org; 29 Oct 2024 14:02:08 +0000 Original-Received: from localhost ([127.0.0.1]:56514 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t5mnP-0005yc-Kw for submit@debbugs.gnu.org; Tue, 29 Oct 2024 10:02:08 -0400 Original-Received: from mail-pl1-f195.google.com ([209.85.214.195]:48210) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t5mnN-0005yU-0n for 73752@debbugs.gnu.org; Tue, 29 Oct 2024 10:02:06 -0400 Original-Received: by mail-pl1-f195.google.com with SMTP id d9443c01a7336-20e576dbc42so55412395ad.0 for <73752@debbugs.gnu.org>; Tue, 29 Oct 2024 07:02:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730210464; x=1730815264; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Z42gg/Z8dOd6BStD9qgM47gU4942owpa9Tbn1EfudH8=; b=Smo60VlwylGuRk+QCKg2WaZuUBzDi/6pkjftEIMd23rVb+C0mViU0P2MFSdnwUyBfG BU511TcwNVZzeX3scQqFaWG506oD6oJg3/momi5+5LB6rLA5xPg+9ImIecsmyNmKF5ka ki66cZSiYupTqrVR+aurusVdydHE8g139h7UUjGsu2ieSrRRdiqxyssAQu+Um51kMw57 xdFIn9NsuHtZs/Tss6Mht4wDjL6ApnBHwTxhlCZLSUiR2L8xeI3HGzOVmsY5RmFWrKEF /5+r1yXL9WlmSmxzd78x9pgVNhj2vdyD2XuhGBOxFLZ7DC7G5Z7XekHEu31AgOrERB1m Qg4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730210464; x=1730815264; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=Z42gg/Z8dOd6BStD9qgM47gU4942owpa9Tbn1EfudH8=; b=wueTj1l8nq+VNSBwOR12/djo7wJjU5qYaG+Pfsd0Y59vTQlg95eYZIHpxizeR5wr6A 2aglB+n93ciJwWmsvx51OF/WLf5j42gCJt7yTsmt2vQSfXl/nkziqkIym+7/zeKK/iI3 nMkTH0HLUkkgJQ4e7fqpQdyFjQpBa44RiQIHjhaMf6ROnA45vTmJt13wVijnyF7bg/i/ 8g39vdPTZ4jrBYZjX5j+ACA1RPq+Yc2pJkGRuRPFWW510R31CsGR5LN3Fryr1M+sG9QT wxhEX6zRZcPdr9LKBTYpZ4SCNt9xzVJGJMsxth4GLb0JIGzcga41vaXDMu4Nxcs5MKsS r6pA== X-Forwarded-Encrypted: i=1; AJvYcCWiWZhorsnNq4SOr/6nWx2oo6To0uBGhxmDL9cDWvDnxtJqiE5DdWM/Q9vuDT7R5GfyT52XLA==@debbugs.gnu.org X-Gm-Message-State: AOJu0YybwpK06G+CJR2CWGhCdpOFR5CpECfa+ZuxZprkaJ4+j3eZagAb 2avu0zbdpSy0CP8gZO316O70ApVr03YPCEV0egWHS7/4ZJGj9vJ/ X-Google-Smtp-Source: AGHT+IFqlnORSbNRzisGv9Hb19wxcyrG8K0nr13lon7QO9qcB0IrFib46cz4Y8M5B39W7NklmSdX2g== X-Received: by 2002:a17:903:2444:b0:20b:c17f:9dad with SMTP id d9443c01a7336-210c6d1f698mr152739925ad.53.1730210464053; Tue, 29 Oct 2024 07:01:04 -0700 (PDT) Original-Received: from localhost ([115.240.90.130]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-210bc088f68sm66637615ad.307.2024.10.29.07.01.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Oct 2024 07:01:03 -0700 (PDT) In-Reply-To: <871pzz10bx.fsf@gmail.com> (Visuwesh's message of "Tue, 29 Oct 2024 19:24:26 +0530") 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:294491 Archived-At: [=E0=AE=9A=E0=AF=86=E0=AE=B5=E0=AF=8D=E0=AE=B5=E0=AE=BE=E0=AE=AF=E0=AF=8D = =E0=AE=85=E0=AE=95=E0=AF=8D=E0=AE=9F=E0=AF=8B=E0=AE=AA=E0=AE=B0=E0=AF=8D 29= , 2024] Visuwesh wrote: Just to make myself clear, the "good" image is from a fresh emacs -Q session. I still have the "bad" one open. > [=E0=AE=9A=E0=AF=86=E0=AE=B5=E0=AF=8D=E0=AE=B5=E0=AE=BE=E0=AE=AF=E0=AF=8D= =E0=AE=85=E0=AE=95=E0=AF=8D=E0=AE=9F=E0=AF=8B=E0=AE=AA=E0=AE=B0=E0=AF=8D 2= 9, 2024] Eli Zaretskii wrote: > >>> From: Visuwesh >>> Cc: luangruo@yahoo.com, 73752@debbugs.gnu.org, xuan@xlk.me >>> Date: Tue, 29 Oct 2024 16:29:48 +0530 >>>=20 >>> >> Is this hash dependent on the font driver? >>> > >>> > No. Only the font used for the composed characters is recorded, not >>> > the font backend which opened it. But fonts are managed by the font >>> > backend, so maybe there's some leakage by that way. >>>=20 >>> OK, thanks. I wonder if we could compare the value returned by >>> font-info if something has gone wrong with the font object used to >>> compute the hash for the glyph?=20=20 >> >> That would not be the first thing I'd look at. According to the >> screenshots, it is more likely that a wrong cache entry is used for a >> composition, which uses the "wrong" font variant. IOW, the font used >> itself is fine, it just is not the font that's supposed to be used >> with the composed characters in that place. >> >> So I would first look at the font object stored in the header of the >> cached composition. >> >>> > Btw, how frequently do you use different frames,=20 >>>=20 >>> Quite often, I would say. I usually have two frames but it can go >>> upwards of 5 to 6 if I have a mouse attached to my laptop. >>>=20 >>> > and how likely are you to have different definitions for the same >>> > faces on different frames in the same Emacs session at the same time? >>>=20 >>> I don't quite understand this question. Are you asking if I have any >>> "frame-specific" face attributes i.e., non-nil FRAME argument in >>> set-face-attribute? >> >> Yes. >> >>> If so, no. >> >> OK, so one more theory eats dust (we don't record the frame in the >> composition cache). >> >>> > The only way I see to investigate this is to wait for this to happen, >>> > then attach GDB to Emacs and look at the problematic compositions in >>> > the cache, comparing them to the corresponding compositions in a fresh >>> > Emacs session. I can tell what to look for with GDB, if that helps. >>>=20 >>> That would help. But given how hard it is to reproduce this issue on my >>> end, I don't know when I can get back... >> >> It would not be useful for me to give instructions before you actually >> hit the problem (because the code will change until then), so if you >> want to try this, get back to me when you do reproduce the problem >> (and then attach GDB and leave the Emacs session under GDB for any >> investigations I'd ask you to do). > > I seem to have run into the issue. The attached images > "cascadia-code-bold-15-good" and "-bad.png" are the desired and > misaligned composite text of "-->" rendered in Cascadia Code bold 15 > font. The same text is composed fine with Cascadia Code bold 17.