<div dir="ltr"><div dir="ltr">On Sat, May 11, 2019 at 12:16 PM 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:51:16 -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>
>  Not sure yet.  What is a "font" for this purpose?  Does it have to be<br>
>  the full contents of a font file on disk?<br>
> <br>
> Yes. The font file.  Maybe describe what you are trying to do?<br>
<br>
I'm trying to use on MS-Windows the HarfBuzz shaping function for<br>
Emacs, which Khaled wrote.  The code as written uses Freetype-specific<br>
data (FT_Face), and I'm trying to provide it with the Windows<br>
equivalents instead.<br>
<br>
As for passing the font file's data to hb_blob_create: it is quite<br>
unusual to manipulate physical font files on MS-Windows, the usual<br>
paradigm is to use a "logical font", which is a specification for a<br>
font, and then retrieve the metrics of the font using dedicated APIs.<br>
So I wonder whether there's an alternative to accessing the physical<br>
font files.<br></blockquote><div><br></div><div>See what Jonathan said.  That, and you can even implement Windows-backed font-funcs.  Several projects do that.  Say, look at Qt maybe? <br></div></div>-- <br><div dir="ltr" class="gmail_signature">behdad<br><a href="http://behdad.org/" target="_blank">http://behdad.org/</a></div></div>