<div dir="ltr"><div dir="ltr">On Sat, May 11, 2019 at 4:13 AM Eli Zaretskii <<a href="mailto:eliz@gnu.org">eliz@gnu.org</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">> From: Jonathan Kew <<a href="mailto:jfkthame@gmail.com" target="_blank">jfkthame@gmail.com</a>><br>
> Date: Sat, 11 May 2019 11:08:42 +0100<br>
> <br>
> You can use hb_face_create_for_tables, passing it a function that can <br>
> retrieve font tables (as hb_blobs) when requested by harfbuzz.<br>
> <br>
> This is what Firefox does, to use harfbuzz with Windows or MacOS font <br>
> APIs; a starting point to explore the Firefox code would be [1], where <br>
> we call hb_face_create_for_tables and pass it HBGetTable as the <br>
> reference_table_func. This calls down to the GetFontTable() method, <br>
> which has separate implementations for the various platforms.<br>
<br>
Thanks, this gets me a notch forward, but I'm afraid there's still a<br>
lot of fog.  Specifically, what does HarfBuzz expect from the<br>
hb_blob's it retrieves this way, and where and how does it use those<br>
blobs?<br></blockquote><div><br></div><div>Or just use hb_face_create() and hb_font_create(). </div></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature">behdad<br><a href="http://behdad.org/" target="_blank">http://behdad.org/</a></div></div>