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#66416: 29.1; Crashes when visiting HELLO file with pgtk on Wayland Date: Tue, 10 Oct 2023 15:08:43 +0300 Message-ID: <83pm1mvfw4.fsf@gnu.org> References: <865y3gq2in.fsf@lan> <83mswsvy0p.fsf@gnu.org> <87bkd7k6b8.fsf@lan> <831qe3ws6d.fsf@gnu.org> <87mswr4ntw.fsf@lan> <83wmvvus3w.fsf@gnu.org> <87cyxnoxp3.fsf@lan> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18493"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 66416@debbugs.gnu.org To: Yuchen Guo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 10 14:10:22 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 1qqBZ7-0004U5-7C for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 10 Oct 2023 14:10:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qqBYf-0001VM-4M; Tue, 10 Oct 2023 08:09:53 -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 1qqBYT-0001NG-L3 for bug-gnu-emacs@gnu.org; Tue, 10 Oct 2023 08:09:41 -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 1qqBYS-0003Rs-Ri for bug-gnu-emacs@gnu.org; Tue, 10 Oct 2023 08:09:41 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qqBYn-00079D-In for bug-gnu-emacs@gnu.org; Tue, 10 Oct 2023 08:10: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: Tue, 10 Oct 2023 12:10:01 +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.169693977327430 (code B ref 66416); Tue, 10 Oct 2023 12:10:01 +0000 Original-Received: (at 66416) by debbugs.gnu.org; 10 Oct 2023 12:09:33 +0000 Original-Received: from localhost ([127.0.0.1]:34188 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qqBYK-00078M-Ip for submit@debbugs.gnu.org; Tue, 10 Oct 2023 08:09:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49072) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qqBYF-000784-TK for 66416@debbugs.gnu.org; Tue, 10 Oct 2023 08:09:31 -0400 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 1qqBXg-0003ES-OE; Tue, 10 Oct 2023 08:09:00 -0400 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=ky4jS9HP6OoppRcBvC4fbiH1rXt9HDBCFz0YkcYoU2Y=; b=ZEJ6uomNJ+WY nwgDXN7k7w5ndxWRgFwAk/Zw/R6DqaPKzU9bXobpoNqIHX2mUQvAq8nz6NgBr7t0/AyTBen7o9vM1 UyC2ceHA69MAYd6c418X60BGirNk2rpD968bk+9wfgjrWBZnPePDbfYsBuDyTbeFA3/sQ2KcsNW3S FJ8g4QVv7d98+DngGOpgDXCYG7Q+wHwkXuE1P4VpdLQx1o5TZ0i69e1cyTWuHjJqCyOQ+KS2z68qy y887QLYb1bbgwxyTlD2vExtgd3IROn11nYl9ciphMHauHtcgUlzTlN+OkhMW756fFX+hb2xGyUlJy YneyIQX36heJ9kDwiya+lg==; In-Reply-To: <87cyxnoxp3.fsf@lan> (message from Yuchen Guo on Tue, 10 Oct 2023 05:26:00 +0000) 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:272202 Archived-At: > From: Yuchen Guo > Cc: 66416@debbugs.gnu.org > Date: Tue, 10 Oct 2023 05:26:00 +0000 > > 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. You do have the freedom, and Emacs gives users more freedom in customizing fonts than most other GUI apps. You just need to know very well what you are doing to exercise that freedom, so we are trying hard to make the need for that as small and rare as possible. > > 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 Thanks. The question is: how can Emacs distinguish between these fonts and decide that one of them is not suitable. In general, Emacs picks up the first font that matches the fontset's spec, so we need to come up with two things: (a) the way for Emacs to distinguish between these fonts, and (b) the way to encode the requirements for a "good" font in our default fontset. Then Emacs will be able to pick up the correct font automatically.