unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#65865: 30.0.50; set-face-attribute doesn't take effect on new frames on Android
@ 2023-09-11 12:10 Shingo Tanaka
  2023-09-11 13:38 ` Eli Zaretskii
  2023-09-12  2:39 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 2 replies; 5+ messages in thread
From: Shingo Tanaka @ 2023-09-11 12:10 UTC (permalink / raw)
  To: 65865

(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





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#65865: 30.0.50; set-face-attribute doesn't take effect on new frames on Android
  2023-09-11 12:10 bug#65865: 30.0.50; set-face-attribute doesn't take effect on new frames on Android Shingo Tanaka
@ 2023-09-11 13:38 ` Eli Zaretskii
  2023-09-12  2:39 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  1 sibling, 0 replies; 5+ messages in thread
From: Eli Zaretskii @ 2023-09-11 13:38 UTC (permalink / raw)
  To: Shingo Tanaka; +Cc: 65865

> Date: Mon, 11 Sep 2023 21:10:37 +0900
> From: Shingo Tanaka <shingo.fg8@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.





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#65865: 30.0.50; set-face-attribute doesn't take effect on new frames on Android
  2023-09-11 12:10 bug#65865: 30.0.50; set-face-attribute doesn't take effect on new frames on Android Shingo Tanaka
  2023-09-11 13:38 ` 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
  1 sibling, 1 reply; 5+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-09-12  2:39 UTC (permalink / raw)
  To: Shingo Tanaka; +Cc: 65865

Shingo Tanaka <shingo.fg8@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.





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#65865: 30.0.50; set-face-attribute doesn't take effect on new frames on Android
  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
  0 siblings, 1 reply; 5+ messages in thread
From: Shingo Tanaka @ 2023-09-12 13:46 UTC (permalink / raw)
  To: Po Lu; +Cc: 65865

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





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#65865: 30.0.50; set-face-attribute doesn't take effect on new frames on Android
  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
  0 siblings, 0 replies; 5+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-09-12 14:08 UTC (permalink / raw)
  To: Shingo Tanaka; +Cc: 65865-done

Shingo Tanaka <shingo.fg8@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.





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-09-12 14:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-11 12:10 bug#65865: 30.0.50; set-face-attribute doesn't take effect on new frames on Android Shingo Tanaka
2023-09-11 13:38 ` 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

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).