<div dir="ltr">aight it’s posted (<a href="https://github.com/behdad/harfbuzz/pull/269">https://github.com/behdad/harfbuzz/pull/269</a>)<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 16, 2016 at 11:19 PM, Kelvin Ma <span dir="ltr"><<a href="mailto:kelvinsthirteen@gmail.com" target="_blank">kelvinsthirteen@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I would use <span style="font-family:monospace,monospace">list(map(ord, string))</span> since unicode codepoint strings are more pythonic (and i only now discover that harfbuzz has buffer_add_codepoints()…yay documentation)<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 16, 2016 at 11:17 PM, Khaled Hosny <span dir="ltr"><<a href="mailto:khaledhosny@eglug.org" target="_blank">khaledhosny@eglug.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On Thu, Jun 16, 2016 at 11:10:03PM -0400, Kelvin Ma wrote:<br>
> ok thanks!! && in that case yall best fix the example at<br>
> <a href="https://github.com/behdad/harfbuzz/blob/master/src/sample.py" rel="noreferrer" target="_blank">https://github.com/behdad/harfbuzz/blob/master/src/sample.py</a> then because<br>
> it just uses string.encode('utf-x'). which is confusing.<br>
<br>
</span>The example is fine, for UTF-8 the API expects bytes array which is what<br>
str.encode() gives you. May be it can be extended to show how to handle<br>
other encodings, can you send a pull request?<br>
<br>
Regards,<br>
Khaled<br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>