<div dir="ltr"><div dir="ltr">On Sat, May 11, 2019 at 11:36 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: Behdad Esfahbod <<a href="mailto:behdad@behdad.org" target="_blank">behdad@behdad.org</a>><br>
> Date: Sat, 11 May 2019 11:26:29 -0700<br>
> Cc: Jonathan Kew <<a href="mailto:jfkthame@gmail.com" target="_blank">jfkthame@gmail.com</a>>, <br>
> "<a href="mailto:harfbuzz@lists.freedesktop.org" target="_blank">harfbuzz@lists.freedesktop.org</a>" <<a href="mailto:harfbuzz@lists.freedesktop.org" target="_blank">harfbuzz@lists.freedesktop.org</a>><br>
> <br>
> Or just use hb_face_create() and hb_font_create(). <br>
<br>
Thanks, that's what I thought I needed to do to begin with. However,<br>
hb_face_create needs a 'blob' argument, and I couldn't understand how<br>
to call hb_blob_create to get a suitable blob. Then I looked at how<br>
hb_ft_face_create does it, and saw that it makes a blob out of FT_Face<br>
structure. But I couldn't see how that blob is used by HarfBuzz, and<br>
so couldn't decide how to call hb_blob_create in my case.<br></blockquote><div><br></div><div>The blob simply hold the font file bytes. There's even hb_blob_create_from_file.</div><div> </div><div>Makes sense?</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>