unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Shingo Tanaka <shingo.fg8@gmail.com>
To: 65865@debbugs.gnu.org
Subject: bug#65865: 30.0.50; set-face-attribute doesn't take effect on new frames on Android
Date: Mon, 11 Sep 2023 21:10:37 +0900	[thread overview]
Message-ID: <s9aledcoqpu.wl-shingo.fg8@gmail.com> (raw)

(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





             reply	other threads:[~2023-09-11 12:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-11 12:10 Shingo Tanaka [this message]
2023-09-11 13:38 ` bug#65865: 30.0.50; set-face-attribute doesn't take effect on new frames on Android Eli Zaretskii
2023-09-12  2:39 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-09-12 13:46   ` Shingo Tanaka
2023-09-12 14:08     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=s9aledcoqpu.wl-shingo.fg8@gmail.com \
    --to=shingo.fg8@gmail.com \
    --cc=65865@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).