From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuchen Guo Newsgroups: gmane.emacs.bugs Subject: bug#66416: 29.1; Crashes when visiting HELLO file with pgtk on Wayland Date: Tue, 10 Oct 2023 05:26:00 +0000 Message-ID: <87cyxnoxp3.fsf@lan> References: <865y3gq2in.fsf@lan> <83mswsvy0p.fsf@gnu.org> <87bkd7k6b8.fsf@lan> <831qe3ws6d.fsf@gnu.org> <87mswr4ntw.fsf@lan> <83wmvvus3w.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="6844"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 66416@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 10 07:27:06 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 1qq5Gr-0001ZU-41 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 10 Oct 2023 07:27:05 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qq5GV-00041Q-Cl; Tue, 10 Oct 2023 01:26:43 -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 1qq5GU-00041G-0U for bug-gnu-emacs@gnu.org; Tue, 10 Oct 2023 01:26:42 -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 1qq5GT-0006fu-OL for bug-gnu-emacs@gnu.org; Tue, 10 Oct 2023 01:26:41 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qq5Go-0004vh-7r for bug-gnu-emacs@gnu.org; Tue, 10 Oct 2023 01:27:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Yuchen Guo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 10 Oct 2023 05:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66416 X-GNU-PR-Package: emacs Original-Received: via spool by 66416-submit@debbugs.gnu.org id=B66416.169691559418907 (code B ref 66416); Tue, 10 Oct 2023 05:27:02 +0000 Original-Received: (at 66416) by debbugs.gnu.org; 10 Oct 2023 05:26:34 +0000 Original-Received: from localhost ([127.0.0.1]:33813 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qq5GM-0004ut-Cd for submit@debbugs.gnu.org; Tue, 10 Oct 2023 01:26:34 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:34589) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qq5GH-0004uY-JC for 66416@debbugs.gnu.org; Tue, 10 Oct 2023 01:26:33 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 2BAC1240028 for <66416@debbugs.gnu.org>; Tue, 10 Oct 2023 07:26:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1696915562; bh=ZWalfYd94OHs76Dynxw3ngf3a+vBQ7oI0zIhdHAx+3s=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=cIlr3HfEEalWdGOe2jahzzg+yKzTIxOUL4PfdY8dhkAkWp4y89EvrFb6gX08VadKN pbQsioCty7qrIrncFNFbSQdpqP4i5+LVVSCdCcK3QN7rO5UX2oeL9D34hYixw0Mzrl K+tYm1KLJxGrZPwiecVRyNFkUbT/lVZJq0jzZCLxhGV4Ux9w9BD/TP1gJ9Ohm0l0jM BnL8AFQjXzLAt5YvLGGI9rlwXEdddzWX294+r9N0oobmOERvjVIven0i6n4fYZih/3 dX21tFVZDJvNkKVu5nd2SJOC/kOeu76hZHndE4kvNC/xvebN31aHf3QnXL7aKDWC32 0r4/eHOe4fYdQ== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4S4PWY4kVBz6tw4; Tue, 10 Oct 2023 07:26:01 +0200 (CEST) In-Reply-To: <83wmvvus3w.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 10 Oct 2023 05:30:11 +0300") 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:272181 Archived-At: Eli Zaretskii writes: > Thanks. ... Is it possible for you to rebuild Emacs with -g3 compiler > switch and then try to reproduce the problem? > > Alternatively, can you build the current emacs-29 branch of the Emacs > Git repository, and see if the problem reproduces there? Will build from latest emacs-29 with -g3 and see if it still crashes. > Please explain why you want to use these and not the default fonts > Emacs uses on your platform. I have configured gsettings/dconf to use aforementioned Monospace and Proportional fonts, and that works fine in pure GTK Emacs in most cases. But the important edge cases, such as the fallback to Simplified Chinese font and AUCTeX prettify mathematical symbols with variable-pitch-mode enabled, fails. (The latter can be remedied by setting font-latex-math-face to something else, but it still does not solve the fallback problem.) This var-pitch fallback problem is also related to scaling. I have GDK_DPI_SCALE=2 set, and Monospaced font looks fine in HELLO, but variable-pitch-mode causes several scripts to be displayed extremely small. You can see this here: https://codeberg.org/m0p/ublock-origin-mirror/raw/branch/main/HELLO-mono.png https://codeberg.org/m0p/ublock-origin-mirror/raw/branch/main/HELLO-proportional.png https://codeberg.org/m0p/ublock-origin-mirror/raw/branch/main/HELLO-too-small.png Besides, in my not so humble opinion, I think Emacs users should have the freedom of choosing the preferred font without crashing Emacs, regardless of defaults. Font is a personal matter and one shouldn't be dragged by others by the nose, as a Chinese idiom would say. > Can you show screenshots of the same text as Emacs displays by > default, and as it should display according to your preferences? Sure. Here I made a GIF from the screenshots, hope you can spot the difference. https://codeberg.org/m0p/ublock-origin-mirror/raw/branch/main/cjk-good-vs-bad.gif