[HarfBuzz] What is wrong with unicode in harfbuzz?

Khaled Hosny khaledhosny at eglug.org
Fri Jun 17 03:17:09 UTC 2016


On Thu, Jun 16, 2016 at 11:10:03PM -0400, Kelvin Ma wrote:
> ok thanks!! && in that case yall best fix the example at
> https://github.com/behdad/harfbuzz/blob/master/src/sample.py then because
> it just uses string.encode('utf-x'). which is confusing.

The example is fine, for UTF-8 the API expects bytes array which is what
str.encode() gives you. May be it can be extended to show how to handle
other encodings, can you send a pull request?

Regards,
Khaled


More information about the HarfBuzz mailing list