<div dir="ltr"><div dir="ltr">On Sat, May 25, 2019 at 10:26 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">One of the methods an Emacs font-backend should provide is the<br>
encode_char method, which returns the glyph code of the selected font<br>
for a character given by its Unicode codepoint.  For example, the XFT<br>
backend uses the XftCharIndex function for that purpose, and the<br>
Freetype backend uses FT_Get_Char_Index.<br>
<br>
What is the best way of providing such a method with HarfBuzz on<br>
MS-Windows?  One possibility is obviously to call hb_shape, but maybe<br>
there's a simpler way for a single codepoint?<br></blockquote><div><br></div><div>hb_font_get_nominal_glyph().</div><div><br></div><div>Use of such facilities in an application is quite suspect though.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Btw, what does hb_font_get_glyph() return?<br></blockquote><div><br></div><div>Boolean indicating whether the font supports that character.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
TIA<br>
_______________________________________________<br>
HarfBuzz mailing list<br>
<a href="mailto:HarfBuzz@lists.freedesktop.org" target="_blank">HarfBuzz@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/harfbuzz" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/harfbuzz</a></blockquote></div><br clear="all"><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>