unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* HarfBuzz on MacOS
@ 2019-11-18 10:21 Pankaj Jangid
  2019-11-18 10:29 ` Robert Pluim
  0 siblings, 1 reply; 9+ messages in thread
From: Pankaj Jangid @ 2019-11-18 10:21 UTC (permalink / raw)
  To: emacs-devel

I have following output from pkg-config:

pankaj@Pankajs-MacBook-Pro emacs % pkg-config --libs "harfbuzz >= 1.2.3"
-L/usr/local/Cellar/harfbuzz/2.6.4/lib -lharfbuzz
pankaj@Pankajs-MacBook-Pro emacs % pkg-config --cflags "harfbuzz >= 1.2.3"
-I/usr/local/Cellar/harfbuzz/2.6.4/include/harfbuzz
-I/usr/local/Cellar/glib/2.62.2/include/glib-2.0
-I/usr/local/Cellar/glib/2.62.2/lib/glib-2.0/include
-I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre/8.43/include
-I/usr/local/Cellar/graphite2/1.3.13/include

But even when I use "./configure --with-harfbuzz", the output of
configure script is

...
Does Emacs use -lgnutls?                                yes
Does Emacs use -lxml2?                                  yes
Does Emacs use -lfreetype?                              no
Does Emacs use HarfBuzz?                                no
...

I have two questions now.

1. Does HarfBuzz make any difference on MacOS?
2. Why HarfBuzz is not selected by the configure script?

I am building on MacOS 10.15.1, Emacs commit is
2e92f176a3ae68ed6fcf9f07c173c61a497f33fd.

Regards,
-- 
Pankaj Jangid



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

* Re: HarfBuzz on MacOS
  2019-11-18 10:21 HarfBuzz on MacOS Pankaj Jangid
@ 2019-11-18 10:29 ` Robert Pluim
  2019-11-18 10:56   ` Pankaj Jangid
  0 siblings, 1 reply; 9+ messages in thread
From: Robert Pluim @ 2019-11-18 10:29 UTC (permalink / raw)
  To: Pankaj Jangid; +Cc: emacs-devel

>>>>> On Mon, 18 Nov 2019 10:21:32 +0000, Pankaj Jangid <p4j@j4d.net> said:

    Pankaj> I have following output from pkg-config:
    Pankaj> pankaj@Pankajs-MacBook-Pro emacs % pkg-config --libs "harfbuzz >= 1.2.3"
    Pankaj> -L/usr/local/Cellar/harfbuzz/2.6.4/lib -lharfbuzz
    Pankaj> pankaj@Pankajs-MacBook-Pro emacs % pkg-config --cflags "harfbuzz >= 1.2.3"
    Pankaj> -I/usr/local/Cellar/harfbuzz/2.6.4/include/harfbuzz
    Pankaj> -I/usr/local/Cellar/glib/2.62.2/include/glib-2.0
    Pankaj> -I/usr/local/Cellar/glib/2.62.2/lib/glib-2.0/include
    Pankaj> -I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre/8.43/include
    Pankaj> -I/usr/local/Cellar/graphite2/1.3.13/include

    Pankaj> But even when I use "./configure --with-harfbuzz", the output of
    Pankaj> configure script is

    Pankaj> ...
    Pankaj> Does Emacs use -lgnutls?                                yes
    Pankaj> Does Emacs use -lxml2?                                  yes
    Pankaj> Does Emacs use -lfreetype?                              no
    Pankaj> Does Emacs use HarfBuzz?                                no
    Pankaj> ...

    Pankaj> I have two questions now.

    Pankaj> 1. Does HarfBuzz make any difference on MacOS?
    Pankaj> 2. Why HarfBuzz is not selected by the configure script?

HarfBuzz is currently only checked for when building on Windows or for
X11. On macOS the build defaults to the NS backend, not X11. Even if
configure detected HarfBuzz, I donʼt think the code is in place to
actually use it on mac.

Robert



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

* Re: HarfBuzz on MacOS
  2019-11-18 10:29 ` Robert Pluim
@ 2019-11-18 10:56   ` Pankaj Jangid
  2019-11-19 13:39     ` Robert Pluim
  0 siblings, 1 reply; 9+ messages in thread
From: Pankaj Jangid @ 2019-11-18 10:56 UTC (permalink / raw)
  To: Robert Pluim; +Cc: emacs-devel

>>>>> Robert Pluim <rpluim@gmail.com> writes:
>     Pankaj> I have two questions now.
>     Pankaj> 1. Does HarfBuzz make any difference on MacOS?
>     Pankaj> 2. Why HarfBuzz is not selected by the configure script?
> HarfBuzz is currently only checked for when building on Windows or for
> X11. On macOS the build defaults to the NS backend, not X11. Even if
> configure detected HarfBuzz, I donʼt think the code is in place to
> actually use it on mac.

Thanks Robert.

Another question: will this make any difference on MacOS when it is
supported?

Regards,
--
Pankaj



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

* Re: HarfBuzz on MacOS
  2019-11-18 10:56   ` Pankaj Jangid
@ 2019-11-19 13:39     ` Robert Pluim
  2019-11-19 13:50       ` Pankaj Jangid
  2019-11-19 16:18       ` Eli Zaretskii
  0 siblings, 2 replies; 9+ messages in thread
From: Robert Pluim @ 2019-11-19 13:39 UTC (permalink / raw)
  To: Pankaj Jangid; +Cc: emacs-devel

>>>>> On Mon, 18 Nov 2019 10:56:22 +0000, Pankaj Jangid <p4j@j4d.net> said:

>>>>> Robert Pluim <rpluim@gmail.com> writes:
    Pankaj> I have two questions now.
    Pankaj> 1. Does HarfBuzz make any difference on MacOS?
    Pankaj> 2. Why HarfBuzz is not selected by the configure script?
    >> HarfBuzz is currently only checked for when building on Windows or for
    >> X11. On macOS the build defaults to the NS backend, not X11. Even if
    >> configure detected HarfBuzz, I donʼt think the code is in place to
    >> actually use it on mac.

    Pankaj> Thanks Robert.

    Pankaj> Another question: will this make any difference on MacOS when it is
    Pankaj> supported?

I donʼt know. Coretext works well enough for me, but perhaps it has
deficiencies that aren't obvious to me. Certainly it would be nice to
only have to worry about one shaping library.

Robert



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

* Re: HarfBuzz on MacOS
  2019-11-19 13:39     ` Robert Pluim
@ 2019-11-19 13:50       ` Pankaj Jangid
  2019-11-19 16:18       ` Eli Zaretskii
  1 sibling, 0 replies; 9+ messages in thread
From: Pankaj Jangid @ 2019-11-19 13:50 UTC (permalink / raw)
  To: Robert Pluim; +Cc: emacs-devel

Robert Pluim <rpluim@gmail.com> writes:
> I donʼt know. Coretext works well enough for me, but perhaps it has
> deficiencies that aren't obvious to me. Certainly it would be nice to
> only have to worry about one shaping library.

Yes. That is for sure better.



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

* Re: HarfBuzz on MacOS
  2019-11-19 13:39     ` Robert Pluim
  2019-11-19 13:50       ` Pankaj Jangid
@ 2019-11-19 16:18       ` Eli Zaretskii
  2019-11-19 16:30         ` Robert Pluim
  1 sibling, 1 reply; 9+ messages in thread
From: Eli Zaretskii @ 2019-11-19 16:18 UTC (permalink / raw)
  To: Robert Pluim; +Cc: p4j, emacs-devel

> From: Robert Pluim <rpluim@gmail.com>
> Date: Tue, 19 Nov 2019 14:39:48 +0100
> Cc: emacs-devel <emacs-devel@gnu.org>
> 
>     Pankaj> Another question: will this make any difference on MacOS when it is
>     Pankaj> supported?
> 
> I donʼt know. Coretext works well enough for me, but perhaps it has
> deficiencies that aren't obvious to me. Certainly it would be nice to
> only have to worry about one shaping library.

Yes, we should strive to support HarfBuzz on all GUI platforms.
Volunteers are welcome to work on that support on macOS.



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

* Re: HarfBuzz on MacOS
  2019-11-19 16:18       ` Eli Zaretskii
@ 2019-11-19 16:30         ` Robert Pluim
  2019-11-21  5:03           ` YAMAMOTO Mitsuharu
  0 siblings, 1 reply; 9+ messages in thread
From: Robert Pluim @ 2019-11-19 16:30 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: p4j, mituharu, emacs-devel

>>>>> On Tue, 19 Nov 2019 18:18:00 +0200, Eli Zaretskii <eliz@gnu.org> said:

    >> From: Robert Pluim <rpluim@gmail.com>
    >> Date: Tue, 19 Nov 2019 14:39:48 +0100
    >> Cc: emacs-devel <emacs-devel@gnu.org>
    >> 
    Pankaj> Another question: will this make any difference on MacOS when it is
    Pankaj> supported?
    >> 
    >> I donʼt know. Coretext works well enough for me, but perhaps it has
    >> deficiencies that aren't obvious to me. Certainly it would be nice to
    >> only have to worry about one shaping library.

    Eli> Yes, we should strive to support HarfBuzz on all GUI platforms.
    Eli> Volunteers are welcome to work on that support on macOS.

I have a vague memory of Yamamoto-san having a preliminary patch for
macOS, but I canʼt locate it right now.

Robert



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

* Re: HarfBuzz on MacOS
  2019-11-19 16:30         ` Robert Pluim
@ 2019-11-21  5:03           ` YAMAMOTO Mitsuharu
  2019-11-21 14:18             ` Eli Zaretskii
  0 siblings, 1 reply; 9+ messages in thread
From: YAMAMOTO Mitsuharu @ 2019-11-21  5:03 UTC (permalink / raw)
  To: Robert Pluim; +Cc: p4j, Eli Zaretskii, emacs-devel

On Wed, 20 Nov 2019 01:30:49 +0900,
Robert Pluim wrote:
> 
> >>>>> On Tue, 19 Nov 2019 18:18:00 +0200, Eli Zaretskii <eliz@gnu.org> said:
> 
>     >> From: Robert Pluim <rpluim@gmail.com>
>     >> Date: Tue, 19 Nov 2019 14:39:48 +0100
>     >> Cc: emacs-devel <emacs-devel@gnu.org>
>     >> 
>     Pankaj> Another question: will this make any difference on MacOS when it is
>     Pankaj> supported?
>     >> 
>     >> I donʼt know. Coretext works well enough for me, but perhaps it has
>     >> deficiencies that aren't obvious to me. Certainly it would be nice to
>     >> only have to worry about one shaping library.
> 
>     Eli> Yes, we should strive to support HarfBuzz on all GUI platforms.
>     Eli> Volunteers are welcome to work on that support on macOS.
> 
> I have a vague memory of Yamamoto-san having a preliminary patch for
> macOS, but I canʼt locate it right now.

It's not public.  I used it just to test if the interface design
(begin_hb_font and end_hb_font in struct font_driver) is appropriate.

I'm currently reluctant to have multiple font backends on macOS
because of Bug#36835, especially if HarfBuzz doesn't have practical
advantages over the Core Text shaper.

				     YAMAMOTO Mitsuharu
				mituharu@math.s.chiba-u.ac.jp



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

* Re: HarfBuzz on MacOS
  2019-11-21  5:03           ` YAMAMOTO Mitsuharu
@ 2019-11-21 14:18             ` Eli Zaretskii
  0 siblings, 0 replies; 9+ messages in thread
From: Eli Zaretskii @ 2019-11-21 14:18 UTC (permalink / raw)
  To: YAMAMOTO Mitsuharu; +Cc: p4j, rpluim, emacs-devel

> Date: Thu, 21 Nov 2019 14:03:54 +0900
> From: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
> Cc: Eli Zaretskii <eliz@gnu.org>,
> 	p4j@j4d.net,
> 	emacs-devel@gnu.org
> 
> I'm currently reluctant to have multiple font backends on macOS
> because of Bug#36835, especially if HarfBuzz doesn't have practical
> advantages over the Core Text shaper.

Bug#36835 is not specific to macOS, so if we allow multiple font
backends on Posix platforms, where this bug happens, why avoid that on
macOS?

Of course, I'd prefer that we fixed that bug, and sooner rather than
later, but other than that, having all modern platforms support and
use HarfBuzz is IMO an important development goal for Emacs, certainly
if the alternative is proprietary software.

Thanks.



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

end of thread, other threads:[~2019-11-21 14:18 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-18 10:21 HarfBuzz on MacOS Pankaj Jangid
2019-11-18 10:29 ` Robert Pluim
2019-11-18 10:56   ` Pankaj Jangid
2019-11-19 13:39     ` Robert Pluim
2019-11-19 13:50       ` Pankaj Jangid
2019-11-19 16:18       ` Eli Zaretskii
2019-11-19 16:30         ` Robert Pluim
2019-11-21  5:03           ` YAMAMOTO Mitsuharu
2019-11-21 14:18             ` 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).