[HarfBuzz] Selecting fonts for HarfBuzz
Behdad Esfahbod
behdad at behdad.org
Wed Jun 5 19:45:00 UTC 2019
On Wed, Jun 5, 2019 at 12:36 PM Eli Zaretskii <eliz at gnu.org> wrote:
> > From: Behdad Esfahbod <behdad at behdad.org>
> > Date: Wed, 5 Jun 2019 12:07:36 -0700
> > Cc: "harfbuzz at lists.freedesktop.org" <harfbuzz at lists.freedesktop.org>
> >
> > In other words, I don't know of a legitimate way to filter out broken
> fonts like code2000. If that's what you are
> > asking for.
>
> No, I wasn't asking about Code2000, I was asking a more general
> question.
>
> > Let me ask it differently: why do you think you need to filter anything
> out?
>
> I assumed that some fonts will not benefit from HarfBuzz, i.e. will
> not support complex script shaping, because they lack some fundamental
> features HarfBuzz needs.
>
> When Emacs needs to find a font for displaying a character which is
> not supported by the default font, it scans the available fonts on the
> system, looking for matching fonts. On Windows, we currently have 2
> matching criteria: one for fonts suitable for shaping with Uniscribe,
> the other for all the rest (the latter generally don't support complex
> script shaping). For HarfBuzz, the code currently employs the same
> matching criteria as for Uniscribe (I described them roughly in a
> previous message). I was asking whether HarfBuzz has additional
> requirements from fonts, or would any font that's good for Uniscribe
> will be good for HarfBuzz.
>
HarfBuzz handles everything it understands. It was designed, in fact, such
that when combined with FreeType or other external font funcs
implementation, it even "handles" font formats it does not understand. Eg.
HarfBuzz doesn't understand BDF, PCF, etc, but if you use hb-ft, you can
use hb-ft for everything, and BDF, PCF etc also magically work because
HarfBuzz defers to FreeType for glyph access, and simply "passes through"
for the rest. It was designed such that you can keep one shaping code path.
--
behdad
http://behdad.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/harfbuzz/attachments/20190605/1c40c7e7/attachment.html>
More information about the HarfBuzz
mailing list