unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: master 94380420e2: Support Noto Emoji font as fallback
       [not found] ` <20220923063837.7C52FC11DF3@vcs2.savannah.gnu.org>
@ 2022-09-23  8:55   ` Robert Pluim
  2022-09-23 10:47     ` Eli Zaretskii
  0 siblings, 1 reply; 7+ messages in thread
From: Robert Pluim @ 2022-09-23  8:55 UTC (permalink / raw)
  To: emacs-devel; +Cc: Eli Zaretskii

>>>>> On Fri, 23 Sep 2022 02:38:36 -0400 (EDT), Eli Zaretskii <eliz@gnu.org> said:


    Eli>     Support Noto Emoji font as fallback
    
    Eli>     The black-and-white emoji font is back under active development,
    Eli>     see https://github.com/googlefonts/noto-emoji.  So this adds
    Eli>     that font as fallback for systems that don't have the capability
    Eli>     of using color fonts.
    Eli>     * lisp/international/fontset.el (setup-default-fontset): Support
    Eli>     black-and-white Noto Emoji font as fallback for Emoji display.

Nice. On a related note, 'Noto Sans <script>' is fairly commonly
available for codepoints in <script>, perhaps we should add those as
fallbacks as well? (the version I have here has support for 169
different scripts)

Robert
-- 



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

* Re: master 94380420e2: Support Noto Emoji font as fallback
  2022-09-23  8:55   ` master 94380420e2: Support Noto Emoji font as fallback Robert Pluim
@ 2022-09-23 10:47     ` Eli Zaretskii
  2022-09-23 12:33       ` समीर सिंह Sameer Singh
  0 siblings, 1 reply; 7+ messages in thread
From: Eli Zaretskii @ 2022-09-23 10:47 UTC (permalink / raw)
  To: Robert Pluim; +Cc: emacs-devel

> From: Robert Pluim <rpluim@gmail.com>
> Cc: Eli Zaretskii <eliz@gnu.org>
> Date: Fri, 23 Sep 2022 10:55:01 +0200
> 
> Nice. On a related note, 'Noto Sans <script>' is fairly commonly
> available for codepoints in <script>, perhaps we should add those as
> fallbacks as well? (the version I have here has support for 169
> different scripts)

I'm not sure.  We should at least figure out how wide-spread those
fonts are, and whether people really prefer them better than what
their systems provide OOTB.  FWIW, the visual appearance of the Google
Noto fonts is not always appealing to me.  But the above could at
least be a good idea for historic scripts that are not used in
contemporary live cultures.



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

* Re: master 94380420e2: Support Noto Emoji font as fallback
  2022-09-23 10:47     ` Eli Zaretskii
@ 2022-09-23 12:33       ` समीर सिंह Sameer Singh
  2022-09-23 12:40         ` समीर सिंह Sameer Singh
  0 siblings, 1 reply; 7+ messages in thread
From: समीर सिंह Sameer Singh @ 2022-09-23 12:33 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Robert Pluim, emacs-devel

[-- Attachment #1: Type: text/plain, Size: 1377 bytes --]

Some issues of the noto fonts which I remember are:

Bengali: No "knots" in the Sans font, though serif fonts have them. [1]
Tirhuta: No "knots" here too at all since it does not have a serif version.
[1]
Sharada: Wrong glyph used for the Vowel A. [2]
Brahmi: Does not support all conjuncts. [3]

[1]: https://github.com/notofonts/bengali/issues/2
[2]: https://twitter.com/a_srinidhi/status/1529752633283469313
[3]: https://github.com/notofonts/brahmi/issues/1

There should be more issues still.

Also maybe I should restart adding new script support to Emacs.

Thanks

On Fri, Sep 23, 2022 at 4:25 PM Eli Zaretskii <eliz@gnu.org> wrote:

> > From: Robert Pluim <rpluim@gmail.com>
> > Cc: Eli Zaretskii <eliz@gnu.org>
> > Date: Fri, 23 Sep 2022 10:55:01 +0200
> >
> > Nice. On a related note, 'Noto Sans <script>' is fairly commonly
> > available for codepoints in <script>, perhaps we should add those as
> > fallbacks as well? (the version I have here has support for 169
> > different scripts)
>
> I'm not sure.  We should at least figure out how wide-spread those
> fonts are, and whether people really prefer them better than what
> their systems provide OOTB.  FWIW, the visual appearance of the Google
> Noto fonts is not always appealing to me.  But the above could at
> least be a good idea for historic scripts that are not used in
> contemporary live cultures.
>
>

[-- Attachment #2: Type: text/html, Size: 2277 bytes --]

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

* Re: master 94380420e2: Support Noto Emoji font as fallback
  2022-09-23 12:33       ` समीर सिंह Sameer Singh
@ 2022-09-23 12:40         ` समीर सिंह Sameer Singh
  2022-09-23 12:54           ` Eli Zaretskii
  0 siblings, 1 reply; 7+ messages in thread
From: समीर सिंह Sameer Singh @ 2022-09-23 12:40 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Robert Pluim, emacs-devel

[-- Attachment #1: Type: text/plain, Size: 1821 bytes --]

Although I think for general enough usage they are fine.
If the user wants they can explicitly change them.
Their goal is "no more tofus" and I think they are achieving that.

Current noto fonts coverage: https://notofonts.github.io/overview/

On Fri, Sep 23, 2022 at 6:03 PM समीर सिंह Sameer Singh <
lumarzeli30@gmail.com> wrote:

> Some issues of the noto fonts which I remember are:
>
> Bengali: No "knots" in the Sans font, though serif fonts have them. [1]
> Tirhuta: No "knots" here too at all since it does not have a serif
> version. [1]
> Sharada: Wrong glyph used for the Vowel A. [2]
> Brahmi: Does not support all conjuncts. [3]
>
> [1]: https://github.com/notofonts/bengali/issues/2
> [2]: https://twitter.com/a_srinidhi/status/1529752633283469313
> [3]: https://github.com/notofonts/brahmi/issues/1
>
> There should be more issues still.
>
> Also maybe I should restart adding new script support to Emacs.
>
> Thanks
>
> On Fri, Sep 23, 2022 at 4:25 PM Eli Zaretskii <eliz@gnu.org> wrote:
>
>> > From: Robert Pluim <rpluim@gmail.com>
>> > Cc: Eli Zaretskii <eliz@gnu.org>
>> > Date: Fri, 23 Sep 2022 10:55:01 +0200
>> >
>> > Nice. On a related note, 'Noto Sans <script>' is fairly commonly
>> > available for codepoints in <script>, perhaps we should add those as
>> > fallbacks as well? (the version I have here has support for 169
>> > different scripts)
>>
>> I'm not sure.  We should at least figure out how wide-spread those
>> fonts are, and whether people really prefer them better than what
>> their systems provide OOTB.  FWIW, the visual appearance of the Google
>> Noto fonts is not always appealing to me.  But the above could at
>> least be a good idea for historic scripts that are not used in
>> contemporary live cultures.
>>
>>

[-- Attachment #2: Type: text/html, Size: 3086 bytes --]

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

* Re: master 94380420e2: Support Noto Emoji font as fallback
  2022-09-23 12:40         ` समीर सिंह Sameer Singh
@ 2022-09-23 12:54           ` Eli Zaretskii
  2022-09-23 13:39             ` Robert Pluim
  0 siblings, 1 reply; 7+ messages in thread
From: Eli Zaretskii @ 2022-09-23 12:54 UTC (permalink / raw)
  To: समीर सिंह Sameer Singh
  Cc: rpluim, emacs-devel

> From: समीर सिंह Sameer Singh
>  <lumarzeli30@gmail.com>
> Date: Fri, 23 Sep 2022 18:10:12 +0530
> Cc: Robert Pluim <rpluim@gmail.com>, emacs-devel@gnu.org
> 
> Although I think for general enough usage they are fine.
> If the user wants they can explicitly change them.
> Their goal is "no more tofus" and I think they are achieving that.

That is true, but AFAIU modern systems come with font coverage that is
not bad at all, including for rare and ancient scripts.

I think we should limit specifying particular fonts in our fontset
setup only to those cases where either the "normal" search for
suitable fonts is likely to fail, or if some font is really superior
to the alternatives.



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

* Re: master 94380420e2: Support Noto Emoji font as fallback
  2022-09-23 12:54           ` Eli Zaretskii
@ 2022-09-23 13:39             ` Robert Pluim
  2022-09-23 16:19               ` Eli Zaretskii
  0 siblings, 1 reply; 7+ messages in thread
From: Robert Pluim @ 2022-09-23 13:39 UTC (permalink / raw)
  To: Eli Zaretskii
  Cc: समीर सिंह Sameer Singh,
	emacs-devel

>>>>> On Fri, 23 Sep 2022 15:54:45 +0300, Eli Zaretskii <eliz@gnu.org> said:

    Eli> I think we should limit specifying particular fonts in our fontset
    Eli> setup only to those cases where either the "normal" search for
    Eli> suitable fonts is likely to fail, or if some font is really superior
    Eli> to the alternatives.

Looking at this some more, Iʼm getting unexpected behaviour for the
'bamum' script (Iʼm basing this off the fallback settings in
fontset.el for 'simple scripts').

emacs -Q
C-x 8 RET 16900 -> hex box
eval (set-fontset-font t 'bamum
       (font-spec :registry "iso10646-1" :script 'bamum) nil 'prepend)
       -> hex box
eval (set-fontset-font t 'bamum
        (font-spec  :script 'bamum) nil 'prepend)
        -> it finds a glyph using the following font
ftcrhb:-Goss-Kurinto Seri-regular-normal-normal-*-19-*-*-*-*-0-iso10646-1 (#x2A66)

which is a locally installed font. If I move that out of the way it
finds the following system font with the second `set-fontset-font' only.

    ftcrhb:-GOOG-Noto Sans Bamum-regular-normal-normal-*-15-*-*-*-*-0-iso10646-1 (#x151)

so the registry spec is preventing emacs from finding the font? (Iʼm
failing once again to get fc-match to tell me what scripts are
supported by a particular font)

Robert
-- 



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

* Re: master 94380420e2: Support Noto Emoji font as fallback
  2022-09-23 13:39             ` Robert Pluim
@ 2022-09-23 16:19               ` Eli Zaretskii
  0 siblings, 0 replies; 7+ messages in thread
From: Eli Zaretskii @ 2022-09-23 16:19 UTC (permalink / raw)
  To: Robert Pluim; +Cc: lumarzeli30, emacs-devel

> From: Robert Pluim <rpluim@gmail.com>
> Cc: समीर सिंह Sameer Singh
>  <lumarzeli30@gmail.com>,  emacs-devel@gnu.org
> Date: Fri, 23 Sep 2022 15:39:57 +0200
> 
> so the registry spec is preventing emacs from finding the font? (Iʼm
> failing once again to get fc-match to tell me what scripts are
> supported by a particular font)

I don't know why this happens, I guess you get to step through the
code in fontset.c and font.c to find out the reason.



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

end of thread, other threads:[~2022-09-23 16:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <166391511602.27504.6133416429158220110@vcs2.savannah.gnu.org>
     [not found] ` <20220923063837.7C52FC11DF3@vcs2.savannah.gnu.org>
2022-09-23  8:55   ` master 94380420e2: Support Noto Emoji font as fallback Robert Pluim
2022-09-23 10:47     ` Eli Zaretskii
2022-09-23 12:33       ` समीर सिंह Sameer Singh
2022-09-23 12:40         ` समीर सिंह Sameer Singh
2022-09-23 12:54           ` Eli Zaretskii
2022-09-23 13:39             ` Robert Pluim
2022-09-23 16:19               ` Eli Zaretskii

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