[HarfBuzz] Opentype features

Kelvin Ma kelvinsthirteen at gmail.com
Fri Jul 1 19:02:45 UTC 2016


so if this
<https://lazka.github.io/pgi-docs/HarfBuzz-0.0/functions.html#HarfBuzz.tag_from_string>
isn’t lying then it looks like i gotta do

otint = hb.tag_from_string(list(map(ord, 'onum')))
otfeature = [' ', ' ', ' ', ' ']
hb.tag_to_string(otint, otfeature)
print(otfeature)

to round-trip a opentype feature through harfbuzz…
and of course

>>> Segmentation fault (core dumped)

Why not just

otint = hb.tag_from_string('onum')
otfeature = hb.tag_to_string(otint)
print(otfeature)

?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/harfbuzz/attachments/20160701/2f93c9be/attachment.html>


More information about the HarfBuzz mailing list