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#65865: 30.0.50; set-face-attribute doesn't take effect on new frames on Android Date: Mon, 11 Sep 2023 16:38:33 +0300 Message-ID: <83edj4rfs6.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18924"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 65865@debbugs.gnu.org To: Shingo Tanaka Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 11 15:40:20 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 1qfh9I-0005iM-CQ for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 Sep 2023 15:40:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qfh8y-0008O3-4y; Mon, 11 Sep 2023 09:40:00 -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 1qfh8w-0008NO-IK for bug-gnu-emacs@gnu.org; Mon, 11 Sep 2023 09:39:58 -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 1qfh8w-0007wJ-62 for bug-gnu-emacs@gnu.org; Mon, 11 Sep 2023 09:39:58 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qfh90-0004z0-6d for bug-gnu-emacs@gnu.org; Mon, 11 Sep 2023 09:40:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Sep 2023 13:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65865 X-GNU-PR-Package: emacs Original-Received: via spool by 65865-submit@debbugs.gnu.org id=B65865.169443954319044 (code B ref 65865); Mon, 11 Sep 2023 13:40:02 +0000 Original-Received: (at 65865) by debbugs.gnu.org; 11 Sep 2023 13:39:03 +0000 Original-Received: from localhost ([127.0.0.1]:52361 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qfh82-0004x6-UF for submit@debbugs.gnu.org; Mon, 11 Sep 2023 09:39:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49528) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qfh81-0004wb-4l for 65865@debbugs.gnu.org; Mon, 11 Sep 2023 09:39:01 -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 1qfh7r-0007bl-O3; Mon, 11 Sep 2023 09:38:51 -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=hZ6OKHQZSZYbZ0cMScbra/ArROqR06LNIjWOFXZizkM=; b=Kaoh8ZsRQKzP 4oT+GdDZpCtostnGAjUCY90T4D2SEqzELgFj8zR1jWksRRW/kyQOlBRrSFfNro/qGN00OzqFvDgAX AxjgR5t+JEGf/RARYP6GWU4NnLK9tToiA56NB09IfMPwzM/s4VMe1MPMEEWCU8V73cGYvos0DnDS8 T6TIERnDcWq3fmfzeq9n/zn1Lb7FjGqiwrKzan67Cv3RQjcD1vygT1VMPUcvX5uB4/EqY68b3lTOx IojkxWvS9bmvNKQlzbxo9p1v9XWv2/UHUnkyTsa3Y31HP9e5Jo4qWBKbnecWXCDR5iG1rS6f+146h DNkTBmPME6sLBkqKDdkVMQ==; In-Reply-To: (message from Shingo Tanaka on Mon, 11 Sep 2023 21:10:37 +0900) 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:270091 > Date: Mon, 11 Sep 2023 21:10:37 +0900 > From: Shingo Tanaka > > (set-face-attribute 'default nil :font "Noto Sans Mono CJK JP") doesn't take > effect on new frames on Android, even though the 2nd argument FRAME is nil. > > Here is how to reproduce. > Maybe the font doesn't need to be the one I specified here. > > 0. Download NotoSansMonoCJKjp-VF.ttf from the url below and put it in ~/fonts > 1. Run Emacs w/o init file. > 2. Evaluate (set-face-attribute 'default nil :font "Noto Sans Mono CJK JP") > on *scratch* buffer. > 3. You can see the displayed font is updated to Noto font. > 4. Type C-x 5 2 (make-frame-command) > 5. You can see the font is not Noto font but the initial font on the new frame. I must say that I'm uncomfortable with this use of script-specific fonts. These fonts are clearly intended to be used for specific scripts/languages, not as the default font. Emacs allows, via the fontset feature, to configure a set of fonts that is optimized for covering large portions of the Unicode codespace, for exactly this reason: it is impractical to expect a single font have good support both for, say, the Japanese script and for other scripts, including advanced text-shaping features such as ligation etc. So I really suggest not to use these Noto fonts as the default font, but instead configure your fontset such that only the Japanese characters are displayed using this font.