[HarfBuzz] How to get hb_face_t and hb_font_t without Freetype?

Behdad Esfahbod behdad at behdad.org
Sat May 11 18:26:29 UTC 2019


On Sat, May 11, 2019 at 4:13 AM Eli Zaretskii <eliz at gnu.org> wrote:

> > From: Jonathan Kew <jfkthame at gmail.com>
> > Date: Sat, 11 May 2019 11:08:42 +0100
> >
> > You can use hb_face_create_for_tables, passing it a function that can
> > retrieve font tables (as hb_blobs) when requested by harfbuzz.
> >
> > This is what Firefox does, to use harfbuzz with Windows or MacOS font
> > APIs; a starting point to explore the Firefox code would be [1], where
> > we call hb_face_create_for_tables and pass it HBGetTable as the
> > reference_table_func. This calls down to the GetFontTable() method,
> > which has separate implementations for the various platforms.
>
> Thanks, this gets me a notch forward, but I'm afraid there's still a
> lot of fog.  Specifically, what does HarfBuzz expect from the
> hb_blob's it retrieves this way, and where and how does it use those
> blobs?
>

Or just use hb_face_create() and hb_font_create().

-- 
behdad
http://behdad.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/harfbuzz/attachments/20190511/ddd9f3d7/attachment.html>


More information about the HarfBuzz mailing list