<div dir="ltr"><div><div><div>so if <a href="https://lazka.github.io/pgi-docs/HarfBuzz-0.0/functions.html#HarfBuzz.tag_from_string">this</a> isn’t lying then it looks like i gotta do<br><br><span style="font-family:monospace,monospace">otint = hb.tag_from_string(list(map(ord, 'onum')))<br>otfeature = [' ', ' ', ' ', ' ']<br>hb.tag_to_string(otint, otfeature)<br>print(otfeature)</span><br><br></div>to round-trip a opentype feature through harfbuzz…<br></div>and of course<br><br>>>> <span style="font-family:monospace,monospace">Segmentation fault (core dumped)</span><br><br></div>Why not just<br><br><span style="font-family:monospace,monospace"><span style="font-family:monospace,monospace">otint</span> = hb.tag_from_string('onum')<br>otfeature = hb.tag_to_string(otint)<br>print(otfeature)</span><br><br>?<br></div>