From: Eli Zaretskii <eliz@gnu.org>
To: Andy Moreton <andrewjmoreton@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: HarfBuzz is available on MS-Windows
Date: Fri, 07 Jun 2019 23:00:13 +0300 [thread overview]
Message-ID: <83o939p3n6.fsf@gnu.org> (raw)
In-Reply-To: <vz1lfydba24.fsf@gmail.com> (message from Andy Moreton on Fri, 07 Jun 2019 18:05:23 +0100)
> From: Andy Moreton <andrewjmoreton@gmail.com>
> Date: Fri, 07 Jun 2019 18:05:23 +0100
>
> I've tested this with an MSYS2 64bit build on Windows 10.
Thanks, you can now just build the master branch.
> It appears to work ok, but is noticeably slower compared to the
> master branch.
I didn't see any tangible slowdown with HarfBuzz on my system. Can
you post some benchmarks with timings? (I assume both branches were
built using the same optimization switches.)
> a) On harfbuzz and master branches from "emacs -Q", a machine without
> the Symbola font does not display the emoji U+1F44B WAVING HAND SIGN (no
> font available). Babelmap shows that this character is available using
> the built-in "Segoe UI Symbol" or "Segoe UI Emoji" fonts (or by
> installing Symbola).
>
> b) On the harfbuzz branch from "emacs -Q", the lao U+EC3 LAO VOWEL SIGN
> AY and U+EC3 LAO VOWEL SIGN O characters are not displayed (no font
> available). Babelmap shows that this character is available using the
> built-in "Leelawadee UI" font.
BabelMap just shows coverage, but Emacs also tests additional features
of the fonts (although I don't think we have any special requirements
for Emoji; Lao certainly does require some OTF features).
In any case, the font backend has nothing whatsoever to do with how
Emacs searches for a suitable font, at least on Windows. What the
above means is that Leelawadee somehow doesn't fit the criteria for
the Lao script and/or the features bits these fonts exhibit don't
announce that they cover the respective codepoint ranges. The way to
improve the font search is to customize the fontsets.
> I use the following to speed up finding built-in fonts on Windows 10:
>
> (pcase-dolist
> (`(,font-spec . ,targets)
> '(;; Unicode blocks ---------------------------------------
> ("Segoe UI Emoji"
> (#x1f900 . #x1f9ff)) ; Supplemental Symbols and Pictographs
> ;; Unicode scripts --------------------------------------
> ("Segoe UI Symbol" braille mathematical symbol)
> ("Leelawadee UI" khmer thai lao)
> ("Nirmala UI" bengali devanagari gujarati kannada
> malayalam oriya sinhala tamil telugu)
> ("Microsoft Himalaya" tibetan)
> ("Myanmar Text" burmese)
> ("Ebrima" ethiopic)
> ("Gadugi" canadian-aboriginal cherokee)))
> (dolist (target targets)
> (set-fontset-font "fontset-default" target font-spec nil 'prepend)))
>
> Perhaps the built in fonts should be added to the default mappings for
> Windows 10.
I think the policy is not to mention non-free fonts in our fontsets.
next prev parent reply other threads:[~2019-06-07 20:00 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-31 13:57 HarfBuzz is available on MS-Windows Eli Zaretskii
2019-05-31 14:25 ` Óscar Fuentes
2019-05-31 14:59 ` Eli Zaretskii
2019-05-31 16:44 ` Óscar Fuentes
2019-05-31 17:13 ` Óscar Fuentes
2019-05-31 18:04 ` Eli Zaretskii
2019-05-31 19:35 ` Óscar Fuentes
2019-05-31 18:00 ` Eli Zaretskii
2019-05-31 20:53 ` Óscar Fuentes
2019-05-31 22:10 ` Óscar Fuentes
2019-06-01 6:36 ` Eli Zaretskii
2019-06-02 18:46 ` Phillip Lord
2019-06-02 18:56 ` Eli Zaretskii
2019-06-02 19:07 ` Phillip Lord
2019-06-02 20:36 ` Óscar Fuentes
2019-06-03 2:42 ` Eli Zaretskii
2019-06-03 3:27 ` Óscar Fuentes
2019-06-03 3:52 ` Eli Zaretskii
2019-06-03 4:07 ` Óscar Fuentes
2019-06-03 6:49 ` Eli Zaretskii
2019-06-04 4:51 ` Tak Kunihiro
2019-06-04 14:16 ` Eli Zaretskii
2019-06-07 17:05 ` Andy Moreton
2019-06-07 20:00 ` Eli Zaretskii [this message]
2019-06-07 21:13 ` Andy Moreton
2019-06-08 6:18 ` Eli Zaretskii
2019-06-08 12:11 ` Andy Moreton
2019-06-08 12:45 ` Eli Zaretskii
-- strict thread matches above, loose matches on Subject: below --
2019-05-31 20:24 Angelo Graziosi
2019-06-01 6:13 ` Eli Zaretskii
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83o939p3n6.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=andrewjmoreton@gmail.com \
--cc=emacs-devel@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.