GNU bug report logs - #65865
30.0.50; set-face-attribute doesn't take effect on new frames on Android

Previous Next

Package: emacs;

Reported by: Shingo Tanaka <shingo.fg8 <at> gmail.com>

Date: Mon, 11 Sep 2023 12:11:01 UTC

Severity: normal

Found in version 30.0.50

Done: Po Lu <luangruo <at> yahoo.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 65865 in the body.
You can then email your comments to 65865 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#65865; Package emacs. (Mon, 11 Sep 2023 12:11:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Shingo Tanaka <shingo.fg8 <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 11 Sep 2023 12:11:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Shingo Tanaka <shingo.fg8 <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 30.0.50;
 set-face-attribute doesn't take effect on new frames on Android
Date: Mon, 11 Sep 2023 21:10:37 +0900
(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.

Device: Xiaomi Pad 5
MIUI Version: MIUI Pad Global 14.0.5  14.0.5.0(TKXMIXM)
Android Version: 13 TKQ1.221013.002
Emacs Binary: emacs-30.0.50-29-arm64-v8a.apk
https://sourceforge.net/projects/android-ports-for-gnu-emacs/files/
Font: ~/fonts/NotoSansMonoCJKjp-VF.ttf
https://github.com/notofonts/noto-cjk
Sans/Variable/TTF/Mono/NotoSansMonoCJKjp-VF.ttf

(emacs-version)
"GNU Emacs 30.0.50 (build 1, aarch64-unknown-linux-android29)
 of 2023-09-11"

If any further information is needed, please let me know.

Regards,
Shingo




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#65865; Package emacs. (Mon, 11 Sep 2023 13:40:02 GMT) Full text and rfc822 format available.

Message #8 received at 65865 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Shingo Tanaka <shingo.fg8 <at> gmail.com>
Cc: 65865 <at> debbugs.gnu.org
Subject: Re: 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
> Date: Mon, 11 Sep 2023 21:10:37 +0900
> From: Shingo Tanaka <shingo.fg8 <at> gmail.com>
> 
> (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.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#65865; Package emacs. (Tue, 12 Sep 2023 02:40:02 GMT) Full text and rfc822 format available.

Message #11 received at 65865 <at> debbugs.gnu.org (full text, mbox):

From: Po Lu <luangruo <at> yahoo.com>
To: Shingo Tanaka <shingo.fg8 <at> gmail.com>
Cc: 65865 <at> debbugs.gnu.org
Subject: Re: bug#65865: 30.0.50; set-face-attribute doesn't take effect on
 new frames on Android
Date: Tue, 12 Sep 2023 10:39:05 +0800
Shingo Tanaka <shingo.fg8 <at> gmail.com> writes:

> (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.
>
> Device: Xiaomi Pad 5
> MIUI Version: MIUI Pad Global 14.0.5  14.0.5.0(TKXMIXM)
> Android Version: 13 TKQ1.221013.002
> Emacs Binary: emacs-30.0.50-29-arm64-v8a.apk
> https://sourceforge.net/projects/android-ports-for-gnu-emacs/files/
> Font: ~/fonts/NotoSansMonoCJKjp-VF.ttf
> https://github.com/notofonts/noto-cjk
> Sans/Variable/TTF/Mono/NotoSansMonoCJKjp-VF.ttf
>
> (emacs-version)
> "GNU Emacs 30.0.50 (build 1, aarch64-unknown-linux-android29)
>  of 2023-09-11"
>
> If any further information is needed, please let me know.
>
> Regards,
> Shingo

Thanks, this should be fixed now.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#65865; Package emacs. (Tue, 12 Sep 2023 13:47:02 GMT) Full text and rfc822 format available.

Message #14 received at 65865 <at> debbugs.gnu.org (full text, mbox):

From: Shingo Tanaka <shingo.fg8 <at> gmail.com>
To: Po Lu <luangruo <at> yahoo.com>
Cc: 65865 <at> debbugs.gnu.org
Subject: Re: bug#65865: 30.0.50;
 set-face-attribute doesn't take effect on new frames on Android
Date: Tue, 12 Sep 2023 22:46:07 +0900
On Tue, 12 Sep 2023 11:39:05 +0900,
Po Lu wrote:
> 
> Thanks, this should be fixed now.

Thank you, I confirmed it's fixed.

On Mon, 11 Sep 2023 22:38:33 +0900,
Eli Zaretskii wrote:
> 
> 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.

Thank you for the advice. I will consider to update my configuration accordingly.

Regards,
Shingo




Reply sent to Po Lu <luangruo <at> yahoo.com>:
You have taken responsibility. (Tue, 12 Sep 2023 14:09:02 GMT) Full text and rfc822 format available.

Notification sent to Shingo Tanaka <shingo.fg8 <at> gmail.com>:
bug acknowledged by developer. (Tue, 12 Sep 2023 14:09:03 GMT) Full text and rfc822 format available.

Message #19 received at 65865-done <at> debbugs.gnu.org (full text, mbox):

From: Po Lu <luangruo <at> yahoo.com>
To: Shingo Tanaka <shingo.fg8 <at> gmail.com>
Cc: 65865-done <at> debbugs.gnu.org
Subject: Re: bug#65865: 30.0.50; set-face-attribute doesn't take effect on
 new frames on Android
Date: Tue, 12 Sep 2023 22:08:07 +0800
Shingo Tanaka <shingo.fg8 <at> gmail.com> writes:

> On Tue, 12 Sep 2023 11:39:05 +0900,
> Po Lu wrote:
>> 
>> Thanks, this should be fixed now.
>
> Thank you, I confirmed it's fixed.

Closing.
Thanks for testing.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 11 Oct 2023 11:24:10 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 212 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.